Linux执行.sh文件的两种方法:一、直接./加上文件名.sh,如运行hello.sh为./hello.sh(hello.sh必须有x权限);二、直接sh加上文件名.sh,如运行hello.sh为sh hello.sh。