shell(一)
2016-05-09 22:16
423 查看
[root@bogon sh]# vim hellow.sh
#!/bin/bash
#yangguangliang
echo "Mr yang is an honest man"
[root@bogon sh]# chmod 755 hellow.sh
[root@bogon sh]# ll
总用量 4
-rwxr-xr-x. 1 root root 62 5月 9 22:12 hellow.sh
[root@bogon sh]# ./hellow.sh
Mr yang is an honest man
[root@bogon sh]# bash hellow.sh
Mr yang is an honest man
#!/bin/bash
#yangguangliang
echo "Mr yang is an honest man"
[root@bogon sh]# chmod 755 hellow.sh
[root@bogon sh]# ll
总用量 4
-rwxr-xr-x. 1 root root 62 5月 9 22:12 hellow.sh
[root@bogon sh]# ./hellow.sh
Mr yang is an honest man
[root@bogon sh]# bash hellow.sh
Mr yang is an honest man
相关文章推荐
- shell爬虫
- 文章标题
- shell日期的应用
- linux上java调用shell脚本
- shell切割日志脚本
- Bash脚本编程变量浅谈
- 深入浅出Shell编程 Shell变量介绍
- shellcode学习总结
- Bash Shell-正则表达式与模式匹配
- shell自动计算脚本
- Linux Shell脚本之远程自动化部署java maven项目
- linux shell 自定义函数(定义、返回值、变量作用域)介绍
- shell脚本的并发
- linux基础之shell编程(3)-给脚本设置参数
- Shell if...elif...fi 语句
- 如何在shell中判断一个文件是否为空
- linux基础之shell编程(2)-条件判断,算数运算,测试
- linux bash的$ !
- -bash: ssh: command not found
- paste,两个文件相同行拼接在一起的shell命令