Note: Enter commands in lowercase only; mixed case is for readability.
2
h
h
Displays shell history.
Synopsis
h
history
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
oldest commands are replaced as new ones are entered.
To edit a command, press ESC to enter 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
j
h
l
a
i
x
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
2-264
h
command displays the 20 most recent commands typed into the shell; the
Move the cursor up
Move the cursor down
Move the cursor left
Move the cursor right
Append
Insert
Delete
Undo
Fabric OS Command Reference Manual
Publication Number: 53-1000240-01