1 cd到.sh文件所在目录
$ cd xxx
1
2 给.sh文件添加x执行权限
$ chmod u+x hello.sh
1
3 ./执行.sh文件
$ ./hello.sh
1
参考资料:
1、Linux下面如何运行.sh文件?
https://jingyan.baidu.com/article/3f16e003e51a752591c103a4.html
---------------------
作者:HeatDeath
来源:CSDN
原文:https://blog.csdn.net/HeatDeath/article/details/79459830?utm_source=copy
版权声明:本文为博主原创文章,转载请附上博文链接!