LinuxCommandLibrary

uncompress

Decompress Unix compress (.Z) files

TLDR

Uncompress files

$ uncompress [path/to/file1.Z] [path/to/file2.Z]
copy
Ignore non-existent files
$ uncompress -f [path/to/file1.Z] [path/to/file2.Z]
copy
Write to stdout
$ uncompress -c [path/to/file1.Z]
copy
Verbose mode
$ uncompress -v [path/to/file1.Z]
copy

SYNOPSIS

uncompress [OPTIONS] [FILE...]

DESCRIPTION

uncompress decompresses files compressed using the Unix compress command. Files typically have a .Z extension. The original compressed file is replaced by the uncompressed version unless -c is used.
This format uses LZW compression and was common on older Unix systems before gzip became standard.

PARAMETERS

-c

Write to stdout, don't modify files
-f
Force, ignore non-existent files
-v
Verbose, show compression percentage

CAVEATS

LZW compression format is largely obsolete. Most systems now use gzip or newer compression. The compress/uncompress commands may not be installed by default.

HISTORY

uncompress is part of the traditional Unix compress utilities using LZW compression, predating the more common gzip format.

SEE ALSO

compress(1), gzip(1), gunzip(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community