Brocade Fabric OS Command Reference Manual (53-1000240-01, November 2006)

2-264 Fabric OS Command Reference Manual
Publication Number: 53-1000240-01
h
2
Note: Enter commands in lowercase only; mixed case is for readability.
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 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 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 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:
See Also none
switch:admin> h
1 version
2 switchshow
3 portdisable 2
4 portenable 2
5 switchshow