LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-25-2006, 01:08 AM   #1
ninpow
LQ Newbie
 
Registered: Jan 2006
Location: Meridian, ID
Distribution: Arch Linux 2009.08 / Slackware 13.0
Posts: 28

Rep: Reputation: 15
Unzipping


How do I unzip .gz files?
 
Old 01-25-2006, 01:14 AM   #2
DukieJF
LQ Newbie
 
Registered: Aug 2005
Location: Colorado, USA
Distribution: MEPIS 3.4.3
Posts: 21

Rep: Reputation: 15
If you're using Mandriva, you can just browse to it in Konqueror, right click on it, and open it with Ark. I actually can't remember the syntax for sure, but if you want to do it from the command line, I think it's "tar xvzf <filename>"
 
Old 01-25-2006, 01:26 AM   #3
ninpow
LQ Newbie
 
Registered: Jan 2006
Location: Meridian, ID
Distribution: Arch Linux 2009.08 / Slackware 13.0
Posts: 28

Original Poster
Rep: Reputation: 15
since like i downloaded a file "steam.gz" and it wont let me extract it just by putting in the syntax
 
Old 01-25-2006, 01:32 AM   #4
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
use the following

gzip -d steam.gz
 
Old 01-25-2006, 01:35 AM   #5
ninpow
LQ Newbie
 
Registered: Jan 2006
Location: Meridian, ID
Distribution: Arch Linux 2009.08 / Slackware 13.0
Posts: 28

Original Poster
Rep: Reputation: 15
thank you!
 
Old 01-25-2006, 02:15 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
.gz files are zipped using "gzip". (GNU zip)
So, gzip -d is indeed the way to go.
On some systems, "gunzip" is an alias for "gzip -d".

As for the tar approach, that only works if the file is a zipped archive.
Basically, "tar" creates and extracts files from an archive, but it also supports
zipping (on creation) and unzipping (on extraction) of the archive, for certain
standard compressed file formats, such as the .gz (GNU zip) format.
tar has the -z option for gzip'ped archives.
Similarly, it has different options for different compression formats, such as .bz2.
 
Old 01-25-2006, 02:43 AM   #7
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
.tgz can also be created by pax, the POSIX Tape Archiver(tar). Just to get it all straight.
 
  


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
Unzipping file anjanesh Linux - Newbie 4 01-11-2006 03:01 AM
unzipping files??? linuxnoob1 Linux - Newbie 11 05-24-2005 01:30 AM
Problems After Unzipping newbie2linux Linux - General 2 12-19-2003 01:03 AM
unZipping a file frank symptoms Linux - Software 4 09-01-2003 11:29 AM
unzipping .zip files...how?? Robert0380 Linux - General 2 04-11-2002 04:54 AM

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

All times are GMT -5. The time now is 08:28 AM.

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