Solved

tgz and gz

Posted on 2000-04-30
1
819 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

617 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