Solved

tgz and gz

Posted on 2000-04-30
1
807 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
ID: 2764192
*.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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 135
AWS EC2 HTTP & HTTPS 2 46
PHP error function not working on AWS 10 76
HOw To Install Docker on VMware Workstation 19 186
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

820 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