shell 腳本語言入門

1、hello world 一、新建一個.sh文件web touch hello.sh vi hello.sh 內容: #定義文件聲明 !表示約定標記, 它會告訴系統這個腳本須要什麼樣的解釋器來執行,即一種腳本體現 #!/bin/bash echo "Hello world!" 二、修改文件權限 首先查看文件權限:ls -l hello.sh 修改權限:chmod +x ./hello.sh 三、
相關文章
相關標籤/搜索