shell之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

  

posted @ 2019-06-18 10:00  为牧  阅读(255)  评论(0编辑  收藏  举报