Shell學習:第一章(第一個Shell腳本)

首先是存放目錄,建議選擇/usr/local/sbin方便管理 建立腳本文件 vi hello.sh 第一步:標準格式 #!/bin/bash 第二步:註釋(解釋程序的功能和用途) 第三步:開始寫功能 echo 「helloworld」 第四步:賦予權限 chmod u+x hello.sh 第五步:執行 ./hello.sh
相關文章
相關標籤/搜索