1、首先要開啟linux操作系統,檢視目錄sh檔案。
2、然後給檔案添加x權限chmod u+x hello.sh。
3、接着再輸入命令./hello,sh或 sh hello.sh。
4、最後就可以執行hello.sh檔案了。