Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

how to uncompress the *.cgz file ?

Rambo_1
Regular Advisor

how to uncompress the *.cgz file ?

Hi,
I got a file "abc.cgz". but now I how to uncompress it ? can I uncompress it under hp-ux OS ?
Thanks for your help.

BR
4 REPLIES
Venkatesh BL
Honored Contributor

Re: how to uncompress the *.cgz file ?

rename the file to "abc.gz" and then use 'gunzip' (in Tru64 UNIX)

I think you are referring to collect datafile. If so, you still cannot read data directly from the uncompressed file. You have to use collect/cfilt to do so.
Joris Denayer
Respected Contributor

Re: how to uncompress the *.cgz file ?

Rambo,

You can only read this file with the collect tool.
collect has it's built in compress/decompress libraries to read the .cgz files

If you really, really, really want to decompress it, you can use following command.

# collect -p input_file.cgz -f output_file -oz

Joris
To err is human, but to really faul things up requires a computer
AwadheshPandey
Honored Contributor

Re: how to uncompress the *.cgz file ?

gzip command used to uncompress with cgz extention.
man gzip
do
gzip -d abc.cgz

Awadhesh
It's kind of fun to do the impossible
Joris Denayer
Respected Contributor

Re: how to uncompress the *.cgz file ?

Hi Awadesh,

Indeed, you can gunzip the file if you rename the suffix to .gz

However, I compared a gzip_uncompressed file with the file produced by the command, that I proposed earlier

There is a difference, as you see on the following lines
-rw-r--r-- 1 root system 27345672 Nov 7 09:14 uncompressed_with_collect
-rw-r--r-- 1 root system 26838760 Nov 7 09:35 uncompresed_with_gzip

Which one is correct ??
Or are they both OK ??

To err is human, but to really faul things up requires a computer