Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (t - u) uncompress(1)
NAME
uncompress - Expands compressed data
SYNOPSIS
uncompress [-cdfnqv][file[.Z] ... ]
FLAGS
-c Makes the uncompress command write to the standard output file; no files are
changed. The nondestructive behavior of the
zcat command is identical to that of
uncompress -c.
-d Specifies that decompression should occur.
-f Except when uncompress is run in the background under the /usr/bin/sh file,
suppresses the prompt about whether an existing file given by the file operand should
be overwritten.
-n Specifies that no header is added or expected. This flag might be useful for
decompressing old files.
-q Specifies a quiet operation. This flag is the default action; diagnostic messages are
displayed only if the -v flag is specified.
-v Prints the percentage expansion of each file.
DESCRIPTION
The uncompress command replaces the compressed .Z file with a decompressed version of the
file, identical to the file that was originally compressed with the compress command. The new
file has the same filename as the compressed file with the .Z suffix removed.
You can specify the compressed target file with or without the .Z suffix; if you do not specify the
suffix, uncompress assumes it.
Operands
file[.Z] Specifies the pathname of a compressed file to be decompressed. If the .Z suffix
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 file that is not
compressed.
RELATED INFORMATION
Commands: compress(1), zcat(1).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specification with extensions.
The following features are extensions to the XPG4 Version 2 specification:
• The -d, -n, and -q flags are supported.
527188-003 Hewlett-Packard Company 9−31