
Using the CLI CLI Services
OmniSwitch 6250/6450 Switch Management Guide May 2012 page 6-12
Recalling the Previous Command Line
To recall the last command executed by the switch, press either the Up Arrow key or the !! (bang, bang)
command at the prompt and the previous command is displayed on your screen. You can execute the
command again by pressing Enter or you can edit it first by deleting or inserting characters.
In the following example, the ls command is used to list the contents of the /flash/switch directory of the
switch.
-> ls
Listing Directory /flash/switch:
drw 2048 Jan 1 1980 ./
drw 2048 Jan 3 19:23 ../
-rw 308 Jan 1 1980 banner_default.txt
9850880 bytes free
->
To enter this same command again, use the Up Arrow key. The ls command appears at the prompt. To
issue the ls command, press Enter.
-> ls
The Up Arrow key and the !! (bang, bang) command displays the last command line entered even if the
command was rejected by the switch.
For more details on using the !! command, refer to “Command History” on page 6-15.
Inserting Characters
To insert a character between characters already typed, use the Left and Right Arrow keys to place the
cursor into position, then type the new character. Once the command is correct, execute it by pressing
Enter. In the following example, the user enters the wrong syntax to execute the show microcode
command. The result is an error message.
-> show microcode
ERROR: flash: no such directory
To correct the syntax without retyping the entire command line, use the !! command to recall the previous
syntax. Then, use the Left Arrow key to position the cursor between the “r” and the “c” characters. To
insert the missing character, type “o”.
-> !!
-> show microcode
To execute the corrected command, press Enter.
Comentarios a estos manuales