Solved

tgz and gz

Posted on 2000-04-30
1
792 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to clone solaris 10 machine 33 112
bash script question (chmod) 10 54
a free alternative to cpanel? 1 58
How to learn Linux? 10 42
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…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 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

21 Experts available now in Live!

Get 1:1 Help Now