Cli control and editing, Executing a prior command—redo, Repeating execution of a command – HP 2910AL User Manual

Page 80: Executing a prior command—redo -16, Repeating execution of a command -16

Advertising
background image

Using the Command Line Interface (CLI)
CLI Control and Editing

CLI Control and Editing

Executing 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 n

th

command starting from

the most recent command in the history is executed.

command-str: When command-str is 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 Command

Repeating Execution of a Command

The

repeat command executes a previous command in the history list.

4-16

Advertising