Chapter 5 Using the Command-Line Interface

Using Editing Features

Recalling Commands

To recall commands from the history buffer, perform one of the actions listed in Table 5-4. These actions are optional.

Table 5-4

Recalling Commands

 

 

 

 

Action1

 

Result

Press Ctrl-Por the up arrow key.

Recall commands in the history buffer, beginning with the most recent command.

 

 

Repeat the key sequence to recall successively older commands.

 

 

Press Ctrl-Nor the down arrow key.

Return to more recent commands in the history buffer after recalling commands

 

 

with Ctrl-Por the up arrow key. Repeat the key sequence to recall successively

 

 

more recent commands.

 

 

 

show history

 

While in privileged EXEC mode, list the last several commands that you just

 

 

entered. The number of commands that appear is controlled by the setting of the

 

 

terminal history global configuration command and the history line configuration

 

 

command.

 

 

 

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

Disabling the Command History Feature

The command history feature is automatically enabled. You can disable it for the current terminal session or for the command line. These procedures are optional.

To disable the feature during the current terminal session, use the terminal no history privileged EXEC command.

To disable command history for the line, use the no history line configuration command.

Using Editing Features

This section contains the following the editing features that can help you manipulate the command line.

Enabling and Disabling Editing Features, page 5-6(optional)

Editing Commands through Keystrokes, page 5-7(optional)

Editing Command Lines that Wrap, page 5-8(optional)

Enabling and Disabling Editing Features

Although the enhanced editing mode is automatically enabled, you can disable it, re-enable it, or configure a specific line to have enhanced editing. These procedures are optional.

To globally disable enhanced editing mode, enter this command in line configuration mode:

Router (config-line)# no editing

To re-enable the enhanced editing mode for the current terminal session, enter this command in privileged EXEC mode:

Router# terminal editing

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

5-6

OL-23826-09

 

 

Page 106
Image 106
Cisco Systems A9014CFD Using Editing Features, Recalling Commands, Disabling the Command History Feature, Action1 Result