- 創(chuàng)建.sh文件
$touch hello.sh
- 查看文本權(quán)限
$ ls -l hello.sh
- 修改文本權(quán)限
$ chmod +x ./hello.sh
- 執(zhí)行腳本文件
$ ./hello.sh
附錄1
文件權(quán)限.png
附錄2
01BCF535-A2E4-4602-B9F9-3D74D672287A.png
$touch hello.sh
$ ls -l hello.sh
$ chmod +x ./hello.sh
$ ./hello.sh