HP StorageWorks Fabric OS 5.0.0 Command Reference Guide (AA-RW1MA-TE, May 2005)

Fabric OS 5.0.0 command reference guide 257
Displays shell history.
Synopsis
h
Availability
all users
Description
Use this command to view the shell history. The shell history mechanism is similar to the UNIX Korn shell
history facility. It has a built-in line editor similar to UNIX vi that enables previously typed commands to be
edited. The h command displays the 20 most recent commands typed into the shell; the oldest commands
are replaced as new ones are entered.
To edit a command, press ESC to access edit mode and then use vi commands. The ESC key switches the
shell to edit mode. The ENTER key gives the line to the shell from either editing or input mode.
Basic vi commands are as follows:
k Move the cursor up
j Move the cursor down
h Move the cursor left
l Move the cursor right
a Append
i Insert
x Delete
u Undo
Operands
none
Examples
To display previous shell commands:
h
switch:admin> h
1 version
2 switchshow
3 portdisable 2
4 portenable 2
5 switchshow