LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2009, 02:01 AM   #1
SanaJay
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
Need help to unzip a .zip file with 2 files in it


Hi,
I need to unzip abc.zip file.
The abc.zip file has two files in it.One is .aud file and a .dat file.
I need to unzip abc.zip and read the contents of .dat file.
Can some one please help me do this.

I tried with the command
gzip -d -S .zip abc.zip
I got the msg
gzip: abc.zip has more than one entry -- unchanged

Please help do this.

Thanks ,
Sana
 
Old 02-05-2009, 02:05 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Code:
unzip abc.zip
 
Old 02-05-2009, 02:05 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
gzip works on single compressed files only, not archives of files. You have to use the unzip command instead:
Code:
unzip abc.zip
 
Old 02-05-2009, 02:43 AM   #4
SanaJay
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot.I was able to unzip the file.
 
  


Reply



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
unzip all .zip files in a directory tes15 Linux - Newbie 14 08-29-2014 11:46 AM
zip/unzip - file too big Joe Soap Linux - Newbie 13 03-14-2014 11:42 AM
Unzip multiple zip files, each to separate folder smart_sagittari Linux - Newbie 3 03-21-2012 08:41 AM
Why cann't unzip a .zip file? backpacker Linux - Newbie 1 02-05-2006 09:25 PM
How to Unzip 2 Zip files through one single command sumitarun Linux - Newbie 2 03-23-2005 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

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