执行脚本

1)脚本以 #!/bin/bash 开头

2)脚本需要有可执行权限

 

 

1.绝对路径 和 相对路径  新起shell环境

2.bash 和 sh  新起shell环境

bash first.sh

sh first.sh

3.source 和 .  --当前环境

 source first.sh

. first.sh

 

posted on 2019-10-31 17:28  happygril3  阅读(213)  评论(0)    收藏  举报

导航