查看目录.sh文件。 python学习网,大量的免费python视频教程,欢迎在线学习! 相关推荐:《Python教程》 先给文件添加x权限chmod u+x hello.sh。 然后再输入./hello,sh或 sh hello.sh。 执行hello.sh文件。 以下就是Linux下面如何运行.sh文件的总结。