Using The No Form Of A Command; Editing Command Lines That Wrap - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
Table of Contents

Advertisement

Chapter 5
CLI Tips, Techniques, and Shortcuts
The percent sign (%) indicates the line in which the error message occurred.
Note
To display the correct command syntax, enter the ? after the command:
RP/0/0/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 enables
or disables 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.
The Cisco IOS XR software command reference publications provide the complete syntax for the
configuration commands and describe what the no form of a command does. For more information, see
the

Editing Command Lines that Wrap

The CLI provides a wraparound feature for commands that extend beyond a single line on the screen.
When the cursor reaches the right margin, the command line shifts ten spaces to the left. The first ten
characters of the line are not shown, but it is possible to scroll back and check the syntax at the beginning
of the command. To scroll back, press Ctrl-B or the Left Arrow key repeatedly, or press Ctrl-A to return
directly to the beginning of the line.
In the following example, the ipv4 access-list command entry is too long to display on one line. When
the cursor reaches the end of the line, the line is shifted to the left and redisplayed. The dollar sign ($)
after the command prompt indicates that the line has been scrolled to the left and the beginning of the
command is hidden.
RP/0/0/CPU0:router(config)# $s-list 101 permit tcp 172.31.134.5 255.255.255.0 172.31.135.0
In the next example, Ctrl-A is used to display the beginning of the command line, and the dollar sign at
the end of the command line shows the command has been scrolled to the right and the end of the
command is hidden.
RP/0/0/CPU0:router(config)# ipv4 access-list 101 permit tcp 172.31.134.5 255.255.255.0 17$
In the next example, the Right Arrow key has been used to scroll to the right. Notice that dollar sign
symbols appear at both ends of the line, which indicates that command information is hidden from the
beginning and end of the command.
RP/0/0/CPU0:router(config)# $ccess-list 101 permit tcp 172.31.134.5 255.255.255.0 172.31.$
By default, the Cisco IOS XR software uses a terminal screen 80 columns wide. To adjust for a different
screen width, use the terminal width command in EXEC mode.
Use line wrapping with the command history feature to recall and modify previous complex command
entries.
OL-24755-01
Configure exclusively from this terminal
Configure from the terminal
"Related Documents" section on page
x.
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
CLI Tips and Shortcuts
5-97

Advertisement

Table of Contents
loading

Table of Contents