DelphiFAQ Home Search:

What is a .tgz file - how do I open a *.tgz file?

 

comments5 comments. Current rating: 2 stars (1 votes). Leave comments and/ or rate it.

Question:

I got a backup file with an extension .tgz - what is that and how do I open it?

Answer:

A *.tgz file is a gnu-zipped .tar file.
You can use gunzip to unpack it and afterwards tar to untar it.

You can unpack it with this command - insert your .tgz file for SAMPLE:

// 2 steps
gunzip -c SAMPLE.tgz
tar tf SAMPLE.tar

// now you should have a folder SAMPLE with your files

// or, using a pipe:
gunzip -c SAMPLE.tgz | tar tf -


Comments:

2007-08-21, 11:58:14
anonymous from United States  
Just do tar -zxvf SAMPLE.tgz . . .

Or tar zxvf SAMPLE.tgz
2007-10-05, 10:59:33
anonymous from United States  
rating
2007-12-03, 02:17:55
anonymous from India  
any more solutions?
2008-01-03, 22:57:55
anonymous from United States  
To unpack a tarball on a Unix machine:

gunzip -c <tgz_file> | tar -xvf
2008-03-12, 05:59:29
anonymous from United Kingdom  
can it be used on backtrack!!!

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.