如果当前脚本未有执行权限,则需要先加上执行权限: chmod +x test.sh
chmod +x test.sh
执行方式有两种:
./test.sh
/bin/sh test.sh
本文标题:shell脚本的执行
本文链接:https://www.haomeiwen.com/subject/xhtwlxtx.html
网友评论