Chapter 5 Using the Command-Line Interface

Using Editing Features

Table 5-5

Editing Commands through Keystrokes (continued)

 

 

 

 

Capability

 

Keystroke1

Purpose

Designate a particular keystroke as

Press Ctrl-V or Esc Q.

 

an executable command, perhaps as a

 

 

shortcut.

 

 

 

 

 

 

Scroll down a line or screen on

Press the Return key.

Scroll down one line.

displays that are longer than the

 

 

terminal screen can display.

 

 

Note The More prompt is used for

 

 

any output that has more

 

 

lines than can be displayed

 

 

on the terminal screen,

 

 

including show command

 

 

output. You can use the

 

 

Return and Space bar

 

 

keystrokes whenever you see

 

 

the More prompt.

 

 

 

 

 

 

 

 

Press the Space bar.

Scroll down one screen.

 

 

 

Redisplay the current command line

Press Ctrl-L or Ctrl-R.

Redisplay the current command line.

if the router suddenly sends a

 

 

message to your screen.

 

 

 

 

 

 

1. The arrow keys function only on ANSI-compatible terminals such as VT100s.

Editing Command Lines that Wrap

You can use 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. You cannot see the first ten characters of the line, but you can scroll back and check the syntax at the beginning of the command. The keystroke actions are optional.

To scroll back to the beginning of the command entry, press Ctrl-Bor the left arrow key repeatedly. You can also press Ctrl-Ato immediately move to the beginning of the line.

Note The arrow keys function only on ANSI-compatible terminals such as VT100s.

In this example, the access-listglobal configuration command entry extends beyond one line. When the cursor first reaches the end of the line, the line is shifted ten spaces to the left and redisplayed. The dollar sign ($) shows that the line has been scrolled to the left. Each time the cursor reaches the end of the line, the line is again shifted ten spaces to the left.

Router(config)# access-list 101 permit tcp 131.108.2.5 255.255.255.0 131.108.1

Router(config)# $ 101 permit tcp 131.108.2.5 255.255.255.0 131.108.1.20 255.25

Router(config)# $t tcp 131.108.2.5 255.255.255.0 131.108.1.20 255.255.255.0 eq

Router(config)# $108.2.5 255.255.255.0 131.108.1.20 255.255.255.0 eq 45

After you complete the entry, press Ctrl-Ato check the complete syntax before pressing the Return key to execute the command. The dollar sign ($) appears at the end of the line to show that the line has been scrolled to the right:

Router(config)# access-list 101 permit tcp 131.108.2.5 255.255.255.0 131.108.1$

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

5-8

OL-23826-09

 

 

Page 108
Image 108
Cisco Systems A9014CFD manual Editing Command Lines that Wrap, Press Ctrl-V or Esc Q, Return and Space bar