
運行linux程式有三種方法,分別是:(免費影片教學分享:linux影片教學)
1、讓檔案具有可執行權限,直接運行檔案。
chmod 指令用來修改檔案的權限。 x是使檔案擁有可執行的權限。就如上面我們運行程式一樣。但是我們看到的結果與我們想像當中有一定的出入。

2、直接呼叫命令解釋器執行程式。
如下圖所示:

由於我們的解釋器是/bin/sh,所以,用sh指令解釋器來執行程式。
3、使用source執行檔。

相關文章教學推薦:linux教學
#
以上是怎麼運行Linux程式的詳細內容。更多資訊請關注PHP中文網其他相關文章!