Using the Command Line Interface (CLI)

CLI Control and Editing

CLI Control and EditingExecuting a Prior Command—Redo

The redo command executes a prior command in the history list.

Syntax: redo [number command-str]

Re-executes a command from history. Executes the last command by default.

number: The position of the command to execute in the history list. When number is specified, the nth command starting from the most recent command in the history is executed.

command-str:When command-stris specified, the most recent command whose name matches the specified string is executed.

ProCurve(config)# show history

 

 

2

show arp

 

 

 

 

1

show flash

 

 

 

 

ProCurve(config)# redo 2

Executes the show arp command again.

 

 

 

 

IP ARP table

 

 

 

 

 

IP Address

MAC Address

Type

Port

 

---------------

----------------- ------- ----

 

15.255.128.1

00000c-07ac00

dynamic

A11

Figure 4-10. Example of the redo CommandRepeating Execution of a Command

The repeat command executes a previous command in the history list.

4-16