當前位置:生活全書館 >

IT科技

> linux執行sh檔案命令

linux執行sh檔案命令

1、首先要開啟linux操作系統,檢視目錄sh檔案

linux執行sh檔案命令

2、然後給檔案添加x權限chmod u+x hello.sh。

linux執行sh檔案命令 第2張

3、接着再輸入命令./hello,sh或 sh hello.sh。

linux執行sh檔案命令 第3張

4、最後就可以執行hello.sh檔案了。

linux執行sh檔案命令 第4張

  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/zh-hant/dianzi/ryvp5o.html