如何在ubuntu编写运行shell脚本

1.打开ubuntu终端,新建一个hello.sh

 编辑hello.sh

#!/bin/sh

echo "hello world"

echo "bye"

保存文件

2.为hello.sh添加可执行权限

3.运行hello.sh

 

猜你喜欢

转载自blog.csdn.net/m0_56256361/article/details/131484402
今日推荐