32 Using the CLI
Command Completion
An appropriate error message displays if the entered command is incomplete or invalid; or has missing or
invalid parameters. This assists in entering the correct command.
Keyboard Shortcuts
The CLI has a range of keyboard shortcuts to assist in editing the CLI commands. The following table
describes the CLI shortcuts.
CLI Command Conventions
When entering commands there are certain command entry standards that apply to all commands.
The following table describes the command conventions.
Keyboard Key Description
Up-arrow key Recalls commands from the history buffer, beginning with the most recent command.
Repeat the key sequence to recall successively older commands.
Down-arrow key Returns the most recent commands from the history buffer after recalling commands with
the up arrow key. Repeating the key sequence will recall successively more recent
commands.
Ctrl+A Moves the cursor to the beginning of the command line.
Ctrl+E Moves the cursor to the end of the command line.
Ctrl+Z / End Returns back to the Privileged EXEC mode from any configuration mode.
Backspace key Deletes one character left to the cursor position.
Convention Description
[ ] In a command line, square brackets indicate an optional entry.
{ } In a command line, curly brackets indicate a selection of compulsory parameters separated by
the | character. One option must be selected. For example, flowcontrol {auto|on|off} means
that for the flowcontrol command either auto, on or off must be selected.
Italic font Indicates a parameter.
<Enter> Indicates an individual key on the keyboard. For example, <Enter> indicates the Enter key.
Ctrl+F4 Any combination of keys pressed simultaneously on the keyboard.
Screen
Display
Indicates system messages and prompts appearing on the console.
all When a parameter is required to define a range of ports or parameters and all is an option, the
default for the command is all when no parameters are defined. For example, the command
interface range port-channel has the option of either entering a range of channels, or selecting
all. When the command is entered without a parameter, it automatically defaults to all.
book.book Page 32 Thursday, December 18, 2008 7:40 PM