hi

The hi command list the history buffer.

Command Format

hi [cnt]

where:

cnt list the last cnt commands in the history buffer

Entering the command with no parameters list the last up to 200 command lines.

Functional description

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
13 hi
12 l


PMON> hi Display the entire history, using more

13 hi to control the screen output.
12 l
11 to
10 t
9 l
8 g start main
7 hi
6 g
5 ls -a @pc
4 d start+200+0t13*4

more-(q)

Environment

The command uses the more function and the moresz environment variable.

See Also

The sh command which maintain a command history.