Linux下面使用命令如何运行.sh文件的两种解决办法

Linux下面用命令如何运行.sh文件的方法,有两种方法:

一、直接./加上文件名.sh,如运行hello.sh为./hello.sh【hello.sh必须有x权限】

二、直接sh 加上文件名.sh,如运行hello.sh为sh hello.sh【hello.sh可以没有x权限】

原文地址:https://www.cnblogs.com/demo-deng/p/10766996.html