[root@localhost sh]#vi hello.sh //编辑 .sh 文件 #The first program #!/bin/bash echo 'hello world'
[root@localhost sh] chmod 755 hello.sh //赋予执行权限
[root@localhost sh] ./hello.sh //执行sh
hello world
[root@localhost sh]#vi hello.sh //编辑 .sh 文件 #The first program #!/bin/bash echo 'hello world'
[root@localhost sh] chmod 755 hello.sh //赋予执行权限
[root@localhost sh] ./hello.sh //执行sh
hello world