1.sh -x foo.sh # 将执行的脚本内容及输出到屏幕上 2.sh -n foo.sh # 不会执行该脚本,仅查询脚本语法是否正确 3.sh -v foo.sh # 在执行脚本的同事,先将脚本内容输出到屏幕上然后执行该脚本 4.sh foo.sh # 脚本断点,断点set -x与set +x之间的脚本,参数 【nvx】 #!/bin/sh set -x ...... ...... set +x