1、查看目录sh文件
2、先给文件添加x权限chmod u+x hello.sh
3、然后再输入./hello,sh或 sh hello.sh
4、执行hello.sh文件
5、以上就是Linux下面如何运行.sh文件的总结