- 创建.sh文件
$touch hello.sh
- 查看文本权限
$ ls -l hello.sh
- 修改文本权限
$ chmod +x ./hello.sh
- 执行脚本文件
$ ./hello.sh
附录1
文件权限.png
附录2
01BCF535-A2E4-4602-B9F9-3D74D672287A.png
$touch hello.sh
$ ls -l hello.sh
$ chmod +x ./hello.sh
$ ./hello.sh