PreviousNext

Specifying File Names

Specify file names using customary UNIX-style names. For instance /opt/dcelocal/dcecp/server_snap.dcecp refers to a file named server_snap.dcecp in a directory called /opt/dcelocal/dcecp. You can also refer to files using relative filenames like ~dce_admin/scripts/server_snap.dcecp and ~/admin/server_snap.dcecp. You can print the current working directory using the pwd command and set the current working directory using the cd command. The following command sets the current directory to be ~dce_admin/scripts.

dcecp> cd ~dce_admin/scripts
dcecp>

You can view a list of files in a directory using the glob command. This command returns a list of file names that match pattern arguments to the command. For instance:

dcecp> glob *
help local_lib.dcp
dcecp>

You can view lots of other information about files using the file command with various options. The file commands can help select a file based on its age, its size, or its permissions (whether it is executable, or readable, or writeable by the current user).