Completing A Partial Command With The Tab Key; Identifying Command Syntax Errors; Using The No Form Of A Command - Cisco ASR 9000 Getting Started Manual

Cisco systems router getting started guide
Hide thumbs Also See for ASR 9000:
Table of Contents

Advertisement

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
RP/0/RSP1/CPU0:router# con<Tab>
RP/0/RSP1/CPU0:router# configure
If your keyboard does not have a Tab key, press Ctrl-I instead.
Tip

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.
The percent sign (%) indicates the line in which the error message occurred.
Note
To display the correct command syntax, type the "?" after the command:
RP/0/RSP0/CPU0:router# configure ?
exclusive
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.
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
5-4
F I N A L D R A F T — C i s c o C o n f i d e n t i a l
copy
Configure exclusively from this terminal
Configure from the terminal
Chapter 5
^
CLI Tips, Techniques, and Shortcuts
OL-17502-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents