Command-Line Editing; History Substitution - Cisco WS-C4003 - Catalyst 4000 Chassis Switch Software Configuration Manual

Software guide
Table of Contents

Advertisement

Chapter 2
Using the Command-Line Interface
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
The system repeats the command you entered without the question mark (?).
Note

Command-Line Editing

The switch CLI supports a number of command line editing keystrokes.
you can use when entering and editing switch commands.
Table 2-1
Keystroke
Ctrl-A
Ctrl-B or the Left Arrow key
Ctrl-C
Ctrl-D
Ctrl-E
Ctrl-F or the Right Arrow key
Ctrl-K
Ctrl-L; Ctrl-R
Ctrl-N or the Down Arrow key
Ctrl-P or the Up Arrow key
Ctrl-U; Ctrl-X
Ctrl-W
Esc B
Esc D
Esc F
Delete key or Backspace key
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.
78-12647-02
Configure system from network
Copy files between TFTP/RCP/module/flash devices
Command-Line Editing Keystrokes
1
1
1
1
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Function
Jumps to the first character of the command line.
Moves the cursor back one character.
Escapes and terminates prompts and lengthy tasks.
Deletes the character at the cursor.
Jumps to the end of the current command line.
Moves the cursor forward one character.
Deletes from the cursor to the end of the command line.
Repeats current command line on a new line.
Enters next command line in the history buffer.
Enters previous command line in the history buffer.
Deletes from the cursor to the beginning of the command line.
Deletes last word typed.
Moves the cursor backward one word.
Deletes from the cursor to the end of the word.
Moves the cursor forward one word.
Erases command-line mistakes; reenter command after use.
Table 2-2
lists the history substitution commands.
Command-Line Editing
Table 2-1
lists the keystrokes
2-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 4000 seriesCatalyst 2948gCatalyst 2980g

Table of Contents