Executes the previously executed command.
You can use the redo command or [ ! ] to reexecute commands in the history list.
The following table lists the valid redo commands.
Command syntax | Description |
---|---|
redo or !
|
Reexecute the last command you entered. |
redo nn or !nn
|
Reexecute command number nn in the history list. |
redo -nn or !-nn
|
Reexecute the nnth previous command (where nn includes the last command you entered). |
redo aaa or !aaa
|
Reexecute the most recently entered command beginning with the characters aaain the history list. |