Click to See Complete Forum and Search --> : Zip Files


wsm2506
11-16-2001, 12:39 AM
Newbie here, but learning. I have been M$ free for 4 weeks now.

Question:

Is there a Linux program the will zip / unzip files? In particular, unzip files created under WinZip?

I am running Linux-Mandrake 8.0

Thanks for your help.

anton
11-16-2001, 01:12 AM
there's unzip to unzip files ... just do "unzip <zipfile>"

I don't know about zipping files ... just use "tar" to make archives :)

mrBen
11-16-2001, 08:32 AM
The GnuZip prog will do it all for you!! Use gunzip to unzip and gzip to zip back up. Type man gzip and man gunzip for helpful hints on all the options.

Also, like Anton said, in Linux generally use tar first, to put all the files into one big file, and then zip it all to one compressed file. Tar includes a switch to use gunzip so you only need one command.

ie. tar -zxvf <prog>.tar.gz will unzip and then untar a file

[Note -z is for use zip, -x is for extract, -v is for verbose, and -f is when you supply the filename]

I think there is an equivalent for running something through gzip after it has been tarred - check out the man page to find out.

HTH

wsm2506
11-16-2001, 11:31 AM
Thanks for the help! :) :)