(1)添加权限:可以加x执行权限,./123.sh (2)命令执行:bash 123.sh,sh 123.sh。 (3)修改变量:在开头写 #/bin/env bash 更改变量./123.sh。
命令:sh 123.sh –x #可查看执行过程。