The hi command list the history buffer.
|cnt||list the last cnt commands in the history buffer|
Entering the command with no parameters list the last up to 200 command lines.
The hi command shows the command history, together with the history number for each command, in reverse order (the last command entered is listed first; the first command entered is listed last). The history and command numbers are reset to zero each time the system is reset.
Entering the hi command with no arguments lists the last 200 commands. This option is useful for determining the history number for a particular command.
The user can page through the output of the hi command, one screen at a time.
The optional cnt parameter selects a set number of lines to be output. The history list is intentionally in the reverse order to that used in a C shell, so that the latest entry is displayed first. If a command line is identical to the previous command, it is not added to the command history.
Examples illustrating the use of the hi command follow.
PMON> hi 3 Display the three last commands.
14 hi 3
PMON> hi Display the entire history, using more
13 hi to control the screen output.
8 g start main
5 ls -a @pc
4 d start+200+0t13*4
The command uses the more function and the moresz environment variable.
The sh command which maintain a command history.