日期:2014-05-16  浏览次数:20627 次

[Linux]shell程序中会用到的一些简单命令
set ignoreeof: 打开ignoreeof这个开关
set history = 50: 将history变量的值设置为50
set: 显示当前所有的shell变量

echo hello world: 显示"hello world"
echo $shell: 显示"shell"变量的值

setenv TERM vt100: 把环境变量TERM设为vt100 (bash下可以用export)
printenv TERM: 显示环境变量TERM的值
printenv: 显示所有的环境变量


history: 最近输入过的命令

alias uic='echo ubuntu is cool': 为'echo ubuntu is cool'定义别名:uic