Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

tgz and gz

Posted on 2000-04-30
1
Medium Priority
?
831 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 80 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

886 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