Linux and Unix uncompress command
Quick links
About uncompress
Syntax
Examples
Related commands
Linux and Unix main page
Uncompressed compressed files.
uncompress [-c] [-f] [-v ] [file]
| -c | Write 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'. |
| -f | When 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. |
| -v | Verbose. Write to standard error messages concerning the percentage reduction or expansion of each file. |
| file | Name of the file to uncompress. The .Z does not need to be typed but can be. |
uncompress myfile.txt
would uncompress the file myfile.txt.Z.
