h
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
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:
Move the cursor up
k
Move the cursor down
j
Move the cursor left
h
Move the cursor right
l
Append
a
Insert
i
Delete
x
Undo
u
Operands
none
Examples
To display previous shell commands:
switch:admin> h
1 version
2 switchshow
3 portdisable 2
4 portenable 2
5 switchshow
See also
none
command displays the 20 most recent commands typed into the shell; the oldest commands
Fabric OS 5.x command reference guide 283