PDA

View Full Version : How to read a ".Z" file?



RobinQi
18th July 2006, 08:50 PM
Hi! All:
I know zcat and uncompress can read a .Z file. But when I use zlib library to
read the file it failed ugly. Anyone know which library should I use to uncompress
the .Z files?

Thanks!

bob
18th July 2006, 11:28 PM
Never ran across one myself, but it looks from here: http://kb.iu.edu/data/afcc.html that gunzip might work.

TheDingleFairy
23rd June 2014, 11:02 PM
Hey,
.Z is an old UNIX compression format, to properly uncompress this you will want to install ncompress using
yum install ncompress.

RupertPupkin
24th June 2014, 05:42 AM
No idea why you're replying to an 8 year-old thread, let alone telling him to use the same program he mentioned he already used. :confused: The original question was about a library to use for reading .Z files, programatically I presume. In that case liblzw (http://freestdf.sourceforge.net/liblzw.php) might be what RobinQi was looking for, though I'm sure he found it by now. :)

Ahmad Samir
24th June 2014, 06:55 AM
No idea why you're replying to an 8 year-old thread, let alone telling him to use the same program he mentioned he already used. :confused: The original question was about a library to use for reading .Z files, programatically I presume. In that case liblzw (http://freestdf.sourceforge.net/liblzw.php) might be what RobinQi was looking for, though I'm sure he found it by now. :)
I think a lot of new users in the forum (me included) fall into that trap at least once; you post to a topic and only find out that it's a couple of years old after someone has pointed that out to you or after realising (after hitting the submit button) that the dates of the previous posts are really old...