Open System Services Management and Operations Guide (G06.29+, H06.07+)

Managing With the Shell
Open System Services Management and Operations Guide527191-005
9-10
Compressing Files
The syntax for the DCOM command to defragment a disk volume is:
volume
is the name of the disk volume you want to defragment.
Compressing Files
You can compress files to create more space on a disk. You can use:
The pack utility, which is a POSIX.2 utility
The compress utility, which provides more compression than pack
Both utilities compress a file and store the specified file in a compressed form. The
compressed (packed) file replaces the input file and has a name derived from the
original filename (filename.z in the case of the pack utility, filename.Z in the case
of the compress utility).
If you have the appropriate privileges, pack preserves the access modes, access and
modification dates, and owner of the original file. (For details about these attributes,
see the chmod(1) reference page either online or in the Open System Services Shell
and Utilities Reference Manual.) Otherwise, pack compresses the file and assigns
your owner and group ID to the new file. The compress utility always preserves access
modes, access and modification dates, and owner information.
You can force compression of input files even if the files cannot benefit from
compression. You can also display statistics about the input files.mpression is not done
under certain conditions; for example, the file is already compressed, has hard links, is
a directory, or cannot be opened. For more information about the pack or compress
command, see the pack(1) or compress(1) reference page either online or in the
Open System Services Shell and Utilities Reference Manual.
Executing Remote Shell Commands
The rsh command executes a specified shell command remotely. It executes
commands at the host system where the commands are to be run. The rsh command
sends standard input from the local host to the remote command and receives
standard output and standard error file data from the remote command.
You can do the following tasks by using the rsh command:
Turn on debugging of the TCP sockets used for communication with the remote
host
DCOM volume
Note. If the remote host is a NonStop S-series or NonStop NS-series server, you must specify
the -l flag and provide your password in clear text form. Using clear text for passwords is not
a good practice, so the rsh command should be avoided if possible.