2-3
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter2 Command-Line Interfac es
Performing Command-Line Processing
This example shows how to open a Telnet session to the switch:
unix_host% telnet Switch_1
Trying 172.20.52.40...
Connected to 172.20.52.40.
Escape character is '^]'.
User Access Verification
Password:< >
Switch_1> enable
Password:
Switch_1#
Performing Command-Line Processing
Switch commands are not case sensitive. You can abbreviate commands and parameters if the
abbreviations contain enough letters to be different from any other currently available commands or
parameters.
You can scroll through the last 20 commands stored in the history buffer and enter or edit a command at
the prompt. Tabl e 2-1 lists the keyboard shortcuts for entering and editing switch commands.
Performing History Substitution
The history buffer stores the last 20 command lines you entered. History substitution allows you to
access these command lines without retyping them. Tab le 2-2 lists the history substitution commands.
Table2-1 Keyboard Shortcuts
Keystrokes Result
Press Ctrl-B or
press the Left Arrow key1
1. The Arrow keys function only on ANSI-compatible terminals, such as VT100s.
Moves the cursor back one character.
Press Ctrl-F or
press the Right Arrow key1
Moves the cursor forward one character.
Press Ctrl-A Moves the cursor to the beginning of the command line.
Press Ctrl-E Moves the cursor to the end of the command line.
Press Esc-B Moves the cursor back one word.
Press Esc-F Moves the cursor forward one word.
Table2-2 History Substitution Commands
Command Purpose
Ctrl-P or the Up Arrow key1Recalls commands in the history buffer, beginning with
the most recent command. Repeat the key sequence to
recall older commands successively.