shell 脚本编写,最基本的构成 最基本的构成如下: !/bin/sh 逻辑代码 新建一个脚本,vi test.sh !/bin/sh echo "这是Linux脚本!!" 保存退出 对其授予可执行权限 chmod 754 test.sh 执行该脚本 ./test.sh