UNIX shell 学习笔记 一 : 几个shell的规则语法对比
摘要:
1. 查看系统有哪些可用的shell cat /etc/shell2. 每种shell都有一个特殊内置变量来存上一条命令的退出状态,例: C/TC shell $status % cp fx fy % echo $status # 显示cp的退出状态,0成功,1失败 Bourne,Bash,Korn Shells $? $ cp fx fy $ echo $? # 显示cp的退出状态,0成功,1失败C shell, TC shell编程语法与结构 1. shbang行 是脚本第一行,通知内核使用哪种shell解释脚本,如C /TCshellkornshellBou... 阅读全文
posted @ 2013-12-31 01:06 漩涡鸣人 阅读(852) 评论(0) 推荐(0)