Did you know LQ has a Linux Hardware Compatibility List?
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 06-09-2005, 05:44 PM   #1
Registered: Aug 2004
Posts: 104

Rep: Reputation: 15
Quick...Someone Tell Me How To Open a Tar File in .tgz format

I already know these formats:

tar -xvf file.tar
tar -xjvf file.tar.bz2
tar -zxvf file.tar.gz

But, I have never seen the .tgz format before.

Old 06-09-2005, 05:48 PM   #2
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
.tgz is usually (read usually as always) a tar file compressed using gzip

to unpack:

gunzip foo.tgz
(this will result in foo.tgz being replaced by an ungzipped foo.tar)

tar -xvf foo.tar
(this will extract the files)
Old 06-10-2005, 04:29 AM   #3
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Or in one line:

tar -xzvf foo.tgz
Old 06-10-2005, 04:58 AM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You may also see files named as *tbz they are basically bzipped files opened the same way as *tar.bz2 files.


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
tar.gz to .tgz file? wombat53 Linux - Software 20 06-15-2005 08:31 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
D/l a .tgz.tar to unzip Navop Linux - Newbie 1 03-13-2005 07:56 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
how to open and tar tarak4u Linux - General 2 05-08-2002 02:52 AM

All times are GMT -5. The time now is 01:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration