shell 脚本执行 lushuan 收录于 Shell 2020-04-19 约 82 字 预计阅读 1 分钟 目录 常见执行方式 其它执行方式 常见执行方式 1 ./test.sh 其它执行方式 1 2 3 4 sh test.sh #在子进程中执行 sh -x test.sh #会在终端打印执行到命令,适合调试 source test.sh #test.sh在父进程中执行 . test.sh #不需要赋予执行权限,临时执行 Please enable JavaScript to view the comments powered by Gitalk. Please enable JavaScript to view the comments powered by Giscus.