5-4
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-17502-01
Chapter 5 CLI Tips, Techniques, and Shortcuts
CLI Tips and Shortcuts
Completing a Partial Command with the Tab Key
If you cannot remember a complete command name or want to reduce the amount of typing you have to
perform, type the first few letters of the command, then press the Tab key. If only one command begins
with that character string, the system completes the command for you. If the characters you entered
indicate more than one command, the system beeps to indicate that the text string is not unique and the
system provides a list of commands that match the text entered.
In the following example, the CLI recognizes conf as a unique string in EXEC mode and completes the
command when you press the Tab key:
RP/0/RSP0/CPU0:router# conf <Tab>
RP/0/RSP0/CPU0:router# configure
The CLI displays the full command name, but you must press Enter to execute the command. This
allows you to modify or reject the suggested command.
In the next example, the CLI recognizes two commands that match the text entered:
RP/0/RSP1/CPU0:router# co<Tab>
configure copy
RP/0/RSP1/CPU0:router# con<Tab>
RP/0/RSP1/CPU0:router# configure
Tip If your keyboard does not have a Tab key, press Ctrl-I instead.
Identifying Command Syntax Errors
If an incorrect command is entered, an error message is returned with the caret (^) at the point of the
error. In the following example, the caret appears where the character was typed incorrectly in the
command:
RP/0/RSP0/CPU0:router# configure termiMal
^
% Invalid input detected at '^' marker.
Note The percent sign (%) indicates the line in which the error message occurred.
To display the correct command syntax, type the “?” after the command:
RP/0/RSP0/CPU0:router# configure ?
exclusive Configure exclusively from this terminal
terminal Configure from the terminal
<cr>
Using the no Form of a Command
Almost every configuration command has a no form. Depending on the command, the no form may
enable or disable a feature. For example, when configuring an interface, the no shutdown command
brings up the interface, and the shutdown command shuts down the interface. The username command
creates a new user, and the no username command deletes a user when entered with a valid username.