Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
CLI Services Using the CLI
page 5-10 OmniSwitch 6600 Family Switch Management Guide March 2005
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 will display 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 switch’s /flash/switch
directory.
->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 will display 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 5-13.
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 micrcode
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.