1. 程式人生 > >ubuntu終端執行shell腳本報command not found解決方法

ubuntu終端執行shell腳本報command not found解決方法

flow logs install post pos not-found stack work href

使用sudo執行腳本報錯:sudo: myshell.sh: command not found
原因:發生這種情況的原因是因為您正在嘗試執行的腳本需要正確的權限
解決:執行sudo chmod a+x myshell.sh,然後在次執行腳本sudo myshell.sh

來源:https://stackoverflow.com/questions/14803062/sudo-install-sh-command-not-found-is-not-working-on-lion

ubuntu終端執行shell腳本報command not found解決方法