6-4
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter6 CLI Tips, Techniques, and Shortcuts
CLI Tips and Shortcuts
The <cr> symbol by itself indicates that there are no more keywords or arguments.
Step5 Press Return to execute the command:
RP/0/RP0/CPU0:router(config)# ipv4 access-list list1 deny 172.31.134.0
Note The configuration does not become active until you enter the commit command to add the target
configuration to the running configuration.
Completing a Partial Command with the Tab Key
If you cannot remember a complete command name or want to redu ce the amount of typing you have to
perform, enter 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 in dicate 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 Tab is pressed:
RP/0/RP0/CPU0:router# conf<Tab>
RP/0/RP0/CPU0:router# configure
The CLI displays the full command name. You must then press Return to execute the command. This
feature 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/RP1/CPU0:router#co<Tab>
configure copy
RP/0/RP1/CPU0:router#con<Tab>
RP/0/RP1/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/0/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, enter the “?” after the command:
RP/0/0/CPU0:router# configure ?