centos執行.sh文件

先用chmod讓sh文件有可執行權限,Linux下面用命令如何運行.sh文件的方法,有兩種方法:utf-8 1、直接./加上文件名.sh,如運行hello.sh爲./hello.sh【hello.sh必須有x權限】get 2、直接sh 加上文件名.sh,如運行hello.sh爲sh hello.sh【hello.sh能夠沒有x權限】權限 若是沒有權限。那麼先設置權限,命令以下:方法 chmod +
相關文章
相關標籤/搜索