PreviousNext

Command History and Command Line Recall

The DCE control program includes a history facility that stores previously entered commands. View the stored commands using the history command.

By default, the history facility stores the 20 most recent commands, but you can use a history keep command to change this, as in:

dcecp> history keep 50
dcecp>

Each stored command is numbered, so you can recall it using an exclamation point (!) followed by the event number.

dcecp> !7
[execution of event 7]
dcecp>

Recall a specific command using an exclamation point (!) followed by the first unique characters of a previously entered command

dcecp> !dir
[execution of last event beginning with dir]
dcecp>

You can also recall and revise the most recent command using the ^old^new syntax familiar to UNIX users.

dcecp> directory vreate /.:/admin/printers
<error message>
dcecp> ^vreate^create
[command output]
dcecp>