Linux and Unix uncompress command

Quick links

About uncompress
Syntax
Examples
Related commands
Linux and Unix main page

About uncompress

Uncompressed compressed files.

Syntax

uncompress [-c] [-f] [-v ] [file]

-cWrite to the standard output; no files are changed and no .Z files are created. The behavior of zcat is identical to that of `uncompress -c'.
-fWhen compressing, force compression of file , even if it does not actually reduce the size of the file, or if the corresponding file .Z file already exists. If the -f option is not given, and the process is not running in the background, prompt to verify whether an existing file .Z file should be overwritten. When uncompressing, do not prompt for overwriting files. If the -f option is not given, and the process is not running in the background, prompt to verify whether an existing file should be overwritten. If the standard input is
not a terminal and -f is not given, write a diagnostic message to standard error and exit with a status greater than 0.
-vVerbose. Write to standard error messages concerning the percentage reduction or expansion of each file.
fileName of the file to uncompress. The .Z does not need to be typed but can be.

Examples

uncompress myfile.txt

would uncompress the file myfile.txt.Z.

Related commands

compress
ln
pack