2011年12月11日 星期日

執行程式 .sh

執行在家目錄下程式
$./hello.sh

./ : 單獨一個點表示為家目錄的縮寫,加上 / 表示為 : /home/student/ 之下的 hello.sh 這個檔案

如果程式在目前使用者所在的目錄下,則
$hello.sh

否則就要加上絕對路徑
$/home/student/hello.sh

沒有留言:

張貼留言