一、编写test.sh #!/bin/bashecho \"hello!\" 二、执行shell 方法1,chmod +x ./test.sh,然后用./test.sh执行脚本 方法2,/bin/sh test.sh方法2会指定使用哪种shell,方法2中是使用了sh这种shell,这会使test.sh的第一行代码无效