HPUX Tips
ksh
To enter vi mode:
set -o vi
Special Vars:
| CHAR | DESCRIPTION |
|---|---|
| # | number of positional parameters |
| ? | exit status |
| $ | process ID |
| - (dash) | current options |
| _ (underscore) | the last argument of the previous command |
| ! | process ID of last background |
| ERRNO | error no. of last failed system call |
| LINENO | the line no. of the current script line in execution |
| OLDPWD | previous cd directory |
| OPTARG | last option processed by getopts |
| OPTIND | index of last option processed by getopts |
| PPID | parent PID |
| PWD | current directory |
| RANDOM | random funcion |
| REPLY | menu item no. in response to select Ksh command |
| SECONDS | seconds since shell invocation |
| CDPATH | search path for cd command |
| COLUMNS | edit window width |
| EDITOR | editor management |
| ENV | generate path name in tracked alias and functions |
| FCEDIT | default editor for history processing command fc |
| FPATH | search path for functions |
| IFS | internal field separator |
| HISTFILE | store command history file |
| HISTSIZE | history buffer size |
| HOME | home directory |
| LANG | system locale |
| LC_COLLATE | collating sequence |
| LC_CTYPE | character classification |
| LC_MESSAGES | language for system messages |
| LC_MONETARY | monetary format |
| LC_NUMERIC | numeric format |
| LC_TIME | date and time format |
| LINES | column length |
| LOGNAME | login name |
| mail notify | |
| MAILCHECK | mail notify interval |
| MAILPATH | mail notify |
| NLSPATH | search path for messages |
| PATH | searc path for commands |
| PS1 | primary promt |
| PS2 | secondary prompt |
| PS3 | selection prompt (default #?) |
| PS4 | trace prompt (default +) |
| SHELL | shell in use |
| TMOUT | command timeout to terminate shell |
| VISUAL | editor option |