OSF DCE Administration Guide--Core Components

DCE Control Program Introduction
You can save the most typing by entering just the unique first characters of words in
a history command. For instance, you can enter the history redo directory
command from the previous example as
dcecp> hi r d
directory show /.:/printers
.
. [output omitted]
.
dcecp>
Other ways to redo commands include !! , which recalls the most recent command,
and !event number to recall a specific event.
You can revise and reexecute a previous command by using the history substitute
command. A common use of this command is to correct typing mistakes. The
command syntax is as follows:
history substitute old new [event number]
If you omit the event number, you’ll redo the most recent command. Replace the old
part of the recalled command with new information:
dcecp> history
1 directory show /.:/printers
2 object create /.:/printers/ascii_printer1
3 object create /.:/printers/ascii_printer2
4 object create /.:/printers/ascii_printer3
5 directory show /.:/printers
dcecp> hi s -2 printer3 printer4
object add /.:/printers/ascii_printer4
dcecp>
You can also recall and revise the most recent command by using the ˆoldˆnew
syntax familiar to users of the UNIX csh shell, as follows:
dcecp> ˆ4ˆ5
object add /.:/printers/ascii_printer5
dcecp>
1.7 Using the dcecp Help Facilities
The DCE control program offers help in several ways:
If you want to see a list of objects provided by the DCE control program, enter help
at the dcecp prompt as shown in the following example:
dcecp> help
124243 Tandem Computers Incorporated 1 13