[test @test test]# sh [-nvx] scripts
-n 不执行脚本,查询脚本内的语法,若有错误则列出
-v 在执行脚本之前,现将脚本的内容显示在屏幕上
-x 将用到的脚本显示在屏幕上,边执行边显示
例:
[test @test test]# sh -x test.sh