Solved

tgz and gz

Posted on 2000-04-30
1
785 Views
Last Modified: 2008-03-06
What is the different between two files with *.tgz and also *.gz ?? How can I extract the *.tgz file ?
0
Comment
Question by:ahchong
1 Comment
 
LVL 3

Accepted Solution

by:
DVB earned 20 total points
Comment Utility
*.tar files have been passed through the tar program.
If the file ends in .tgz or in .gz, it has been compressed using gzip (.tgz means it has been first tarred, and then gzipped, same for *.tar.gz).
To extract this on linux
for *.gz : gunzip <filename.gz>
for *.tar.gz and *.tgz : tar -zx <filename.t*>

For further options, if you need those man tar, man gzip.
On a non Linux system, the -x option may not be available, so you will have to unzip and untar separately.
gunzip *gz
tar -z *.tar
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now