Cisco WS-C4003 Software Guide - Page 41
Command-Line Editing, History Substitution
View all Cisco WS-C4003 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 41 highlights
Chapter 2 Using the Command-Line Interface Command-Line Editing To use the partial-keyword-lookup function, enter ? to display a list of commands that begin with a specific set of characters. Do not insert a space between the last letter of the variable and the question mark (?). For example, enter co? at the privileged prompt to display a list of commands that start with co. The system displays all commands that begin with co as follows: Console> (enable) co? configure copy Console> (enable) co Configure system from network Copy files between TFTP/RCP/module/flash devices Note The system repeats the command you entered without the question mark (?). Command-Line Editing The switch CLI supports a number of command line editing keystrokes. Table 2-1 lists the keystrokes you can use when entering and editing switch commands. Table 2-1 Command-Line Editing Keystrokes Keystroke Function Ctrl-A Ctrl-B or the Left Arrow key1 Jumps to the first character of the command line. Moves the cursor back one character. Ctrl-C Escapes and terminates prompts and lengthy tasks. Ctrl-D Deletes the character at the cursor. Ctrl-E Jumps to the end of the current command line. Ctrl-F or the Right Arrow key1 Moves the cursor forward one character. Ctrl-K Deletes from the cursor to the end of the command line. Ctrl-L; Ctrl-R Ctrl-N or the Down Arrow key1 Ctrl-P or the Up Arrow key1 Repeats current command line on a new line. Enters next command line in the history buffer. Enters previous command line in the history buffer. Ctrl-U; Ctrl-X Deletes from the cursor to the beginning of the command line. Ctrl-W Deletes last word typed. Esc B Moves the cursor backward one word. Esc D Deletes from the cursor to the end of the word. Esc F Moves the cursor forward one word. Delete key or Backspace key Erases command-line mistakes; reenter command after use. 1. The arrow keys function only on ANSI-compatible terminals, such as VT100s. History Substitution The history buffer stores the last 20 commands that you entered during a terminal session. History substitution allows you to repeat these commands using the special abbreviated commands, similar to those used on the UNIX command line. Table 2-2 lists the history substitution commands. 78-12647-02 Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4 2-5