shell脚本基础-四种启动方式

1.当前路径启动

./test.sh

2.绝对路径启动

pwd

/data/beijing

'pwd'/test.sh

3.指定解释器执行

sh test.sh

bash test.sh

4.shell环境执行

. test.sh

source test.sh

posted @ 2020-01-02 14:41  豆莱浆渠  阅读(739)  评论(0编辑  收藏  举报