转载自 https://my.oschina.net/gef/blog/633606
如果 .sh 文件里面的命令都能在命令行运行,但直接./xxx.sh 会报 command not found 或 Permission denied
解决方法为在命令行输入:
chmod u+x *.sh
转载自 https://my.oschina.net/gef/blog/633606
如果 .sh 文件里面的命令都能在命令行运行,但直接./xxx.sh 会报 command not found 或 Permission denied
解决方法为在命令行输入:
chmod u+x *.sh