Command history and re-executing commands, Command history and re-executing commands -26 – Alcatel Carrier Internetworking Solutions Omni Switch/Router User Manual

Page 136

Advertising
background image

General User Interface Guidelines

Page 4-26

Command History and Re-Executing Commands

The

history

command displays up to 50 commands numbered in order with the most recently

executed command listed last. The following is a typical example of the

history

command.

1: view mpx.cmd
2: vlan
3: at
4: atvl
5: vimcvl
6: mcvl
7: vivl
8: fwtvl
9: xlat
10: history

In the example above, the

history

command is listed last because it is the one that was

executed most recently. If you want to re-execute the last command, enter two exclamation
points (

!!

). In the example above, you could re-execute the

history

command by entering

!!

at the system prompt.

You can also display a specific number of commands by entering

history

followed by a

number less than or equal to the number of commands in the history buffer. For example, if
you entered

history 5

in the example above you would see the following:

7: vivl
8: fwtvl
9: xlat
10: history
11:history 5

The

UI

also provides several other ways to re-execute earlier commands. For example, you

can re-execute a specific command shown in the

history

list by entering an exclamation point

(

!

) followed by the number to the left of that command shown in the

history

list. In the exam-

ple at the beginning of this section, entering

!2

would re-execute the

vlan

command.

You can also re-execute a command a set number of commands back by entering an excla-
mation point and a minus sign (

!-

) followed by that set number of commands back. In the

example at the beginning of this section, entering

!-3

would re-execute the

fwtvl

command.

Advertising