Unzipping .Z file in UNIX

Hi ,

How can I unzip a .Z file in Unix?

Thanks and regards,
Anupam

.Z is the standard extension for compressed files so you would typically use $ uncompress file.Z

.z (lowercase Z) is the standard extension for packed files (use unpack to for them).

Hi Chubler_XL

I am getting following error when I am trying uncompress

-bash: uncompress: command not found

---------- Post updated at 08:28 AM ---------- Previous update was at 08:19 AM ----------

Hi

gzip -d worked. Thanks anyway.

On a modern *nix system, gzip -d will do the work of older utilities such as uncompress - from man gzip

gunzip can currently decompress files created by gzip, zip, compress, compress -H  or  pack. 

Cheers,
ZB

1 Like