1834163 Members
2705 Online
110064 Solutions
New Discussion

Re: Uncompress

 
SOLVED
Go to solution
logaraman
Regular Advisor

Uncompress

Hi,

Would like to uncompress a .Z file present in one filesystem into an another filesystem..

any suggestions pls
4 REPLIES 4
inventsekar_1
Respected Contributor

Re: Uncompress

*.Z Compressed file created by the command "compress" and removed by "uncompress".

but i dont know how to uncompress files present in one filesystem into an another filesystem..
Be Tomorrow, Today.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Uncompress

Easy, zcat is your friend:

zcat < /xxx/yyy/zzz.Z > /aaa/bbb/zzz

If you had bothered to do a man uncompress, you would have found zcat.
If it ain't broke, I can fix that.
inventsekar_1
Respected Contributor

Re: Uncompress

this may be usefull for you.
Compress the file named zenith and print compression information to
the terminal:

compress -v zenith

The terminal display shows either a line resembling

zenith: Compression: 23.55% -- replaced with zenith.Z

indicating that the compressed file is 23.55% smaller than the
original, or a line resembling

zenith: Compression: -12.04% -- file unchanged

indicating that an additional 12.04% space must be used to compress
the file.

Undo the compression by typing either of the following commands:

uncompress zenith.Z
compress -d zenith.Z

This restores file zenith.Z to its original uncompressed form and
name.

uncompress will perform on standard input if no files are specified.
For example, to list a compressed tar file:

uncompress -c arch.tar.Z | tar -tvf -
Be Tomorrow, Today.
logaraman
Regular Advisor

Re: Uncompress

The solution was given by clay stephenson..

I used the zcat command but without the filename