LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
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.

Notices

Reply
 
Thread Tools
Old 06-09-2005, 06:44 PM   #1
njschroe
Member
 
Registered: Aug 2004
Posts: 104
Thanked: 0
Quick...Someone Tell Me How To Open a Tar File in .tgz format


[Log in to get rid of this advertisement]
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.

Thanks
njschroe is offline     Reply With Quote
Old 06-09-2005, 06:48 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Bawstun area
Distribution: Suse (10.2, 10.3), CentOS, and Ubuntu
Posts: 1,796
Thanked: 0
.tgz is usually (read usually as always) a tar file compressed using gzip

to unpack:

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

Code:
tar -xvf foo.tar
(this will extract the files)
KimVette is offline     Reply With Quote
Old 06-10-2005, 05:29 AM   #3
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388
Thanked: 0
Or in one line:

tar -xzvf foo.tgz
trevelluk is offline     Reply With Quote
Old 06-10-2005, 05:58 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
You may also see files named as *tbz they are basically bzipped files opened the same way as *tar.bz2 files.
reddazz is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 09: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 04:15 AM
D/l a .tgz.tar file..how to unzip Navop Linux - Newbie 1 03-13-2005 08:56 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
how to open gz.zip.tgz.zipfiles and tar tarak4u Linux - General 2 05-08-2002 03:52 AM


All times are GMT -5. The time now is 02:04 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration