1.基本构成: #! bin/env bash 解释语言,版本、更新时间、作者等等,相当于注释 2.执行 chmod +x [脚本名称] 3.运行:/tmp/shell01/hello.sh 或者当前目录./hello.sh 3.非标准(一般用于检查) bash -x hello.sh 4.语法检查 bash -n hello.sh 5.重新读取 source hello.sh