Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (t - u) uncompress(1)
NAME
uncompress - Expands compressed data
SYNOPSIS
uncompress [-cdfnqv][le[.Z] ... ]
FLAGS
-c Makes the uncompress command write to the standard output le; no les are
changed. The nondestructive behavior of the
zcat command is identical to that of
uncompress -c.
-d Species that decompression should occur.
-f Except when uncompress is run in the background under the /usr/bin/sh le,
suppresses the prompt about whether an existing le given by the le operand should
be overwritten.
-n Species that no header is added or expected. This ag might be useful for
decompressing old les.
-q Species a quiet operation. This ag is the default action; diagnostic messages are
displayed only if the -v ag is specied.
-v Prints the percentage expansion of each le.
DESCRIPTION
The uncompress command replaces the compressed .Z le with a decompressed version of the
le, identical to the le that was originally compressed with the compress command. The new
le has the same lename as the compressed le with the .Z sufx removed.
You can specify the compressed target le with or without the .Z sufx; if you do not specify the
sufx, uncompress assumes it.
If the le has an access control list (ACL), the ACL is preserved when the le is decompressed. |
For more information about ACLs, see the acl(5) reference page.
Operands
file[.Z] Species the pathname of a compressed le to be decompressed. If the .Z sufx
is omitted, it is assumed.
Environment Variables
This command supports the use of the LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and
NLSPATH environment variables.
EXIT VALUES
The uncompress command returns the following values:
0 (zero) The command completed successfully.
>0 An error occurred or an attempt was made to expand a le that is not
compressed.
RELATED INFORMATION
Commands: compress(1), zcat(1).
527188-007 Hewlett-Packard Company 931