当前位置:网站首页>Shell脚本简单语法
Shell脚本简单语法
2022-06-21 20:18:00 【name_qgy】
touch helloworld.sh
#!/bin/bash
#This line is a comment
echo "Hello World"
#!执行该程序要用到bash解释器,位置
#注释
sh helloworld.sh
chmod +x helloworld.sh
添加权限,成为可执行程序
./helloworld.sh
注:./与后面的.sh文件中间没有空格
mv helloworld.sh /bin/
helloworld.sh
添加到$PATH变量所包含的路径中,使该脚本成为默认的系统命令
边栏推荐
- P6758 [BalticOI2013] Vim
- 洛谷P1378 油滴扩展 题解
- Qx2308 high efficiency PFM Synchronous Boost dc/dc converter
- Ruiji housekeeper, a century old classic, is waiting for your elegant journey to start again
- GAMES101作业7-多线程提速实现步骤详解
- Enzo高灵敏度检测——Arg8-Vasopressin ELISA kit
- 2022 Foshan Tanzhou ceramics exhibition held a press conference to launch ten key points of the exhibition
- 12. signal foundation
- Worthington deoxyribonuclease I solution
- 挖财赠送的证券账户安全吗?可以开户吗?
猜你喜欢
![I2C [2] - why does IIC need to use open drain output and pull-up resistor bug](/img/8d/e72c640b697a8fe9768f6bdbf137ca.png)
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug

Supplier management system of digital commerce cloud Paper Group: promote enterprise information construction and comprehensively improve supplier management efficiency

提升方法(上)AdaBoost

InteliJ-IDEA-高效技巧(二)

新能源行业商业采购协同系统:赋能新能源行业采购业务,提升产业协同

15 iterator

AWS CloudWatch

New energy industry commercial procurement collaboration system: enable new energy industry procurement business and enhance industrial collaboration
![P6758 [BalticOI2013] Vim](/img/07/b16c8d329b33424e931d9eaedae73a.png)
P6758 [BalticOI2013] Vim

C# AboutBox怎么显示自己定义的界面
随机推荐
phpmailer 通过smtp发送邮件,相同发送内容有的成功有的失败
洛谷P1535 [USACO08MAR]Cow Travelling S 题解
Jerry's SD card reuse IIC precautions [chapter]
British teddy bear joins the pubg mobile game
As we media, why can some people earn more than 10000 yuan a month, but you can only earn a few yuan a month?
Yx2811 landscape installation driver IC
I2C【2】-IIC为什么需要用开漏输出和上拉电阻bug
Advanced packaging, the beginning of a big cycle -- a symposium on semiconductor equipment
央企国电集团上海翔伟机电和中外海达成战略合作,捐赠2亿
InteliJ-IDEA-高效技巧(一)
洛谷P1514 [NOIP2010 提高组] 引水入城 题解
opencvsharp阈值分割threshold函数的ThresholdTypes
挖财赠送的证券账户安全吗?可以开户吗?
In the anchoring stage of retail digitalization, more attention is paid to how to mine and transform traffic by means of Digitalization
大型语言模型教会智能体进化,OpenAI这项研究揭示了二者的互补关系
六个拿来就能用的有趣网页特效
The order management system realizes the unified management of enterprise order inventory
Tkinter drawing component (29) -- Radio Group Control
Go语言单元测试基础从入门到放弃
Qx2308 high efficiency PFM Synchronous Boost dc/dc converter