如何编写shell sudo vi file.shsudo chmod +x file.sh./file.sh shell脚本的格式 #!/bin/bash 可执行权限 chmod +x FILE.sh(文件名)