LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What's the equivalent of ZIP in linux? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-equivalent-of-zip-in-linux-137533/)

Astropicachu 01-22-2004 02:24 PM

What's the equivalent of ZIP in linux?
 
Hi to all,
What is the ZIP tool in linux? Can I install ZIP in linux? Is there a linux equivalent of it? Does it work with ZIP files? Is it compatible with it?
Thanks a million...:(

looseCannon 01-22-2004 02:30 PM

There is a zip command in linux. Not sure if it works the same as on Windoze, but it is there. 'tar' and 'gzip' are more commonly used on linux platforms. In fact, these two can be used together from a single command.

Code:

tar -cvzf new_archive_name.tgz /file/or/directory/to/include
that command will create a new compressed tar file. Of course you can use the two command separately if you want to.

objorkum 01-22-2004 02:30 PM

Linux use for the most tar (.tar.gz files). These can be extracted with tar -zxvf filename.tar.gz

or for .tar.bz2 files: tar -jxvf filename.tar.bz2

For ZIP-files: unzip -p filename.zip

Most distros comes with the unzip tool.

Snodge 01-22-2004 04:44 PM

Both gnome and kde have graphical tools that can open tar, tgz, tar.gz, bz2 files etc - usually all you have to do is use the graphical file manager and double-click on them. Otherwise, it's a case of using the command line...

Astropicachu 01-22-2004 04:50 PM

I definitely need to get on with the CL. Thanx guys


All times are GMT -5. The time now is 07:03 AM.