how to unzip in Linux?

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
unzip.

The installation of the unzip package will differ depending on the distro.
 

chsh1ca

Golden Member
Feb 17, 2003
1,179
0
0
GZip != zip.

Unzip/zip are part of a package together to deal with the standard windows-style ZIP archives.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: chsh1ca
GZip != zip.

Unzip/zip are part of a package together to deal with the standard windows-style ZIP archives.

I believe you mean PK-style, not windows style. MS has nothing to do without zip - it just so happens that PKzip was most popular back in the DOS days, and set the standard that would be used by people distributing files for future compatible OSes.
 

leolaw

Senior member
Apr 29, 2003
383
0
0
tar -xzvf filenames

-x extract
-z uncompress
-v verbose mode
-f input file names


Work w/ filename w/ *.tar.gz
if it is *.tar use only the -xvf switch
if it is *.tar.gz.bz2 use the -xjvf swith ( I believe , you shouldda check out the man page to make sure, but i am sure that it is something w/ the letter "j" )

Good luck
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Also you have 2 sorts of compression technics commonly used with tar balls.

filename.tar.gz OR filename.tgz
filename.tar.bz2

The 2 compression techics are bzip2 and gzip.

They have there own commands:
bzip2 filename #to compress a file
bunzip2 filename #to decompress a file

gzip filename #to compress a file
gunzip filename #to decompress a file

Tar can call up these tools easily by a modifier to uncompress tar archives.

The difference between gzip and bzip2 is there algorithms used to compress the files. Gzip is a older program, bzip2 is newer.

Bzip2 generally compresses files more effeciantly and to smaller sizes then gzip, but uses much more cpu power to decompress. So much so that large files/archives can take a VERY long time to extract compared to a gzip'd file/archive.

Gzip isn't very good at compressing small files, though.

So generally when you want to: 1. save as much disk space as possible 2. save as much bandwidth as possible 3. have bunches of little files to deal with, you want to use bzip2.

If you have very large files or stuff that is dependant on compatability and easy on the cpu resources you want to use gzip. (say your trying to back up a entire 15gig home directory, you'd definately would want to compress it using gzip)

To decompress and extract tar files compressed with bzip2:

tar jxfv filename.tar.bz2

To decompress and extract tar files compressed with gzip:

tar zxfv filename.tgz

Tar is very usefull and is designed specificly for handling directories. See the man file for details, that way you don't have to memorize all the zxfv xfv bxf crap.
 

chsh1ca

Golden Member
Feb 17, 2003
1,179
0
0
Originally posted by: CTho9305
Originally posted by: chsh1caUnzip/zip are part of a package together to deal with the standard windows-style ZIP archives.

I believe you mean PK-style, not windows style. MS has nothing to do without zip - it just so happens that PKzip was most popular back in the DOS days, and set the standard that would be used by people distributing files for future compatible OSes.
That is technically correct, but to a Windows XP user, it is seamless integration of the zip archives, therefore I hear many refer to it as the standard zip file. In addition to that, PKZip is/was only popular on Windows/Dos, as there are better alternatives in other OSes.

 

poppyq

Senior member
Oct 20, 2003
255
0
0
Why are most of you giving him advice for tar and bunzip and gunzip and all that, he's trying to extract a zip and those do NOT handle it. You need to go to Info-zip.org and get the binary for your system. Generally I put something like this in /usr/bin so you can use it from anywhere.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Umm,,, Were just talking about different compressions stuff,

You know FYI stuff.

We gave the answer long time ago.

It's "unzip filename" to unzip files
 

poppyq

Senior member
Oct 20, 2003
255
0
0
Yeah, you told him the command, but most used Linux distros do not come with unzip by default (redhat 7.2,7.3,9.0, slackware, debian)
 

Spyro

Diamond Member
Dec 4, 2001
3,366
0
0
Originally posted by: poppyq
Yeah, you told him the command, but most used Linux distros do not come with unzip by default (redhat 7.2,7.3,9.0, slackware, debian)

I think he has probably figured it out by now.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Hah, redhat doesn't install unzip by default? That's really lame. zip files are fairly common for redhat's target audience.

Debian doesn't come with almost anything by default, that's the whole concept. apt-get install unzip.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |