eHow launches Android app: Get the best of eHow on the go.

How To

How to Unzip TGZ Files

Member
By Josephine Wallace
User-Submitted Article
(3 Ratings)
Unzip TGZ files
Unzip TGZ files
jw

A TGZ file is a file archive in TAR (tape archive) file format that has been compressed by the gzip (GNU Zip) program. The TGZ file format is very common in Linux and Unix environments, but it is rarely used in the Windows environment. In general, the files extracted from a TGZ file are only usable within a Linux or Unix environment because they were originally created and archived in a Linux or Unix. With the right programs, it is easy to unpack a TGZ file.

Difficulty: Easy
Instructions
  1. Step 1

    If you're in a Unix environment, run "gzip" from the command line to make sure it exists. If not, follow the gzip link in Resources to download and install GNU zip.

  2. Step 2

    If you're in an Unix environment, run "tar" from the command line to make sure it exists. If not, use the GNU tar link in the Resources section below to download and install GNU tar.

  3. Step 3

    If you're in an Unix environment, copy or move the TGZ file to an empty directory. If this is not done, the files and directories from the TGZ archive will be mixed with the pre-existing files in the current directory.

  4. Step 4

    In a unix environment, unpack with the following command:

    gtar xvzf file.TGZ

    Or the run following series of two commands:

    gzip -d file.tgz
    tar xvf file.tar

  5. Step 5

    If you are in a Windows environment without a Unix shell such as Cygwin, the quickest way to get a TGZ file unpacked is to download and install one of several unzip programs capable of unpacking TGZ files. Installing Cygwin will take much longer than installing a Windows based unzip program.

Tips & Warnings
  • In some older Unix environments, the tar command that comes with the operating system may be too outdated to deal with the TGZ or resulting TAR file. In those cases, the easiest solution is to install GNU tar, which will be an updated version of tar.
Subscribe

Post a Comment

Post a Comment

eHow Article: How to Unzip TGZ Files

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics