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


使用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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM