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

posted @ 2018-01-21 16:38  易墨  阅读(9182)  评论(0编辑  收藏  举报
Fork me on GitHub