切换到shell脚本所在的目录(此时,称为工作目录)执行shell脚本。

以绝对路径的方式去执行bash shell脚本。

直接使用bash 或sh 来执行bash shell脚本。

或。

在当前的shell环境中执行bash shell脚本。

或。