Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-29-2003, 12:22 PM   #1
frank symptoms
LQ Newbie
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Post unZipping a file

I'm trying to use the native Linux commands to unZip a zip file with 2 files in it. gunzip won't do it if more than one file is in the zipfile. Got any suggestions?
Old 08-29-2003, 01:15 PM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Unless I am reading the question incorrectly, you are using the wrong command.

If you want to uncompress a ZIP file (.zip), use unzip
If you want to uncompress a GZip file (.gz), use gunzip
Old 08-29-2003, 02:15 PM   #3
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
If the extension of the file is .tgz then use
tar -xvzf <file_name>
else specify the extension of the file to be unzipped
1 members found this post helpful.
Old 09-01-2003, 08:37 AM   #4
frank symptoms
LQ Newbie
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
The problem is, using the utilities native to RH 7.3, unzip only works if there is exactly 1 file in the .zip file. I regularly receive 2 or more files in the zip.
I"m newly struggling with PKware's PKZIP for Linux (Command Line).
Old 09-01-2003, 11:29 AM   #5
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Rep: Reputation: 30


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unzipping a .zip file sduffy89 Linux - Software 3 08-25-2004 08:55 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
problem in unzipping the tar file jyome Linux - Software 1 09-04-2003 08:56 AM
Problems unzipping a *.tar.gz file --permission denied? mfarley Linux - Newbie 3 07-22-2003 05:07 PM
unzipping: file size limit exceeded peeples Linux From Scratch 9 10-15-2002 07:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration