|
发表于 2004-7-11 19:54:26
|
显示全部楼层
附录
一份kornshell专用变量列表(与bash基本类似,以各自系统上的shell的manpage为准)
- KornShell Reserved variables :
- +-----------+-----------------------------------+-------------------+------+
- | Variable | What this variable holds | Default | Who |
- | | | | sets |
- +-----------+-----------------------------------+-------------------+------+
- | CDPATH | directories that cd searches | none | U |
- | COLUMNS | terminal width | 80 | SA |
- | EDITOR | pathname of command line editor | /bin/ed | U,SA |
- | ENV | pathname of startup script | none | U,SA |
- | ERRNO | error number of most recently | none | KSH |
- | | failed system call | | |
- | FCEDIT | pathname of history file editor | /bin/ed | U,SA |
- | FPATH | path of autoload functions | none | U |
- | HISTFILE | pathname of history file | $HOME/.sh_history | U,SA |
- | HISTFILE | nb of command in history file | 128 | U,SA |
- | HOME | login directory | none | SA |
- | IFS | set of token delimiters | white space | U |
- | LINENO | current line number within | none | KSH |
- | | script or function | | |
- | LINES | terminal height | 24 | SA |
- | LOGNAME | user name | none | SA |
- | MAIL | patname of master mail file | none | SA |
- | MAILCHECK | mail checking frequency | 600 seconds | U,SA |
- | MAILPATH | pathnames of master mail files | none | SA |
- | OLDPWD | previous current directory | none | KSH |
- | OPTARG | name of argument to a switch | none | KSH |
- | OPTIND | option's ordinal position on | none | KSH |
- | | command line | | |
- | PATH | command search directories | /bin:/usr/bin | U,SA |
- | PPID | PID of parent | none | KSH |
- | PS1 | command line prompt | $ | U |
- | PS2 | prompt for commands that | > | U |
- | | extends more than 1 line | | |
- | PS3 | prompt of 'select' statements | #? | U |
- | PS4 | debug mode prompt | + | U |
- | PWD | current directory | none | U |
- | RANDOM | random integer | none | KSH |
- | REPLY | input repository | none | KSH |
- | SECONDS | nb of seconds since KornShell | none | KSH |
- | | was invoked | | |
- | SHELL | executed shell (sh, csh, ksh) | none | SA |
- | TERM | type of terminal you're using | none | SA |
- | TMOUT | turn off (timeout) an unused | 0 (unlimited) | KSH |
- | | KornShell | | |
- | VISUAL | command line editor | /bin/ed | U,SA |
- | $ | PID of current process | none | KSH |
- | ! | PID of the background process | none | KSH |
- | ? | last command exit status | none | KSH |
- | _ | miscellaneous data | none | KSH |
- +-----------+-----------------------------------+-------------------+------+
- | Variable | What this variable holds | Default | Who |
- | | | | sets |
- +-----------+-----------------------------------+-------------------+------+
- Where U : User sets this variable
- SA : system administrator
- KSH: KornShell
复制代码
ps:相信大家都有stardict这个东东,英文很简单,stardict一下就明白了,呵呵 |
|