shell脚本调试 发表于: 2022-07-18 2022-07-18 分类: SRE 标签: bash, shell bash -n test.sh #读一遍脚本中的命令但不执行,用于检查脚本中的语法错误。 bash -v test.sh #一边执行脚本,一边将执行过的脚本命令打印。 bash -x test.sh #将执行的每一条命令和结果依次打印出来 文章导航 前一页 上一篇: shell命令运行符号 & ; && 三者区别后一页 下一篇: arm64 build libpcap erer, er 141RSS订阅