Chapter 4: Understanding the User Interface

Enter the year using the correct syntax and press <Enter> to execut the command.

Router# clock set 13:32:00 23 February 1997

Command History Features

The Cisco IOS software user interface provides a history, or record, o commands that you have entered. This feature is particularly useful fo recalling long or complex commands or entries, including access lists. By default, the system records 10 command lines in its history buffer. The following commands are entered from user EXEC mode.

Warning: Many of the commands described in this section refer to arrow keys as well as alternate keystrokes. Please note that arrow keys function only on ANSI-compatible termi nals such as VT100s.

History Commands

Command Format

 

 

Set the number of command lines the

terminal history

system will record during the current

[size number-of-

terminal session.

lines]

 

 

Reset the number of lines saved in th

terminal no his-

history buffer to the default of 10

tory size

lines.

 

 

 

Recall commands in the history

Press <Ctrl-P> or the up

buffer, beginning with the most recent

arrow key

command. Repeat the key sequence to

 

recall successively older commands.

 

 

 

Return to more recent commands in

Press <Ctrl-N> or the

the history buffer after recalling com-

down arrow key

mands with <Ctrl-P> or the up arrow

 

key. Repeat the key sequence to recall

 

successively more recent commands.

 

 

 

List the last several commands you

show history

entered while in EXEC mode.

 

 

 

Disable command history during th

terminal no his-

current terminal session.

tory

 

 

August 1997

Page 4-23

2524UM

 

Page 59
Image 59
AIS AI2524 user manual History Commands Command Format, Size number-of, Lines