How to Unzip TGZ Files

How to Unzip TGZ Files thumbnail
Unzip TGZ files

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.

Instructions

    • 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

      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

      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

      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

      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.

Related Searches:

Resources

  • Photo Credit jw

Comments

You May Also Like

  • How to Unzip TGZ Files

    TGZ files are the Linux and Unix equivalent of ZIP files in Windows. Free utilities are available that allow you to both...

  • How to Unzip a Tgz File in Linux

    TGZ is one of the most common compression formats used for sharing Linux files over the Internet. The command-line tool used to...

  • What Is the File Extension Tgz?

    The .tgz file extension is associated with compressed files that generally contain archived information. A special program is usually needed to extract...

  • How to Create a .TGZ File in Windows

    Files with a ".tgz" or ".tar.gz" extension are compressed archives that users of Unix-based operating systems use to more easily transfer or...

  • How to Unzip Tar Files in Linux

    Linux is an open source version of the UNIX graphical user interface operating system. The operating system is an alternative to the...

  • How to Gzip File Compression in Unix

    Gzip is a Unix utility program to compress files. Files compressed using Gzip are replaced by a smaller file with the same...

  • How to Unzip a File

    Ok, so you have downloaded a file from someone and it says that it is zipped or compressed. You ask, "how do...

  • How to Unzip a File to Edit Copy

    To edit a zipped file, you first have to extract the file from its zipped folder. Once the file is extracted it...

  • How to Unzip Gzip Files

    Gzip is a patent-free software application that compresses files into a container format. Unlike the Zip and 7Zip formats, Gzip is not...

  • How to Unzip Using Tar

    Linux is an open source operating system that provides a free alternative to commercial systems like Microsoft Windows and Mac OS. Unlike...

  • How to Use TAR to Unzip

    A "tar" file is most commonly seen on Linux or Unix operating systems. It is a collection of files, similar to a...

  • How to Unzip Movie Files

    If you've recently downloaded a movie file only to find out that the folder appears to be "zipped," what you're seeing is...

  • How to Install a Linux HighPoint Raid Controller

    RAID, or Redundant Array of Independent Disk, systems combine multiple hard disks as a single hard disk on a computer, allowing the...

  • How to Unzip TAR Files in Windows

    TAR files are much like RAR or ZIP files. They are compressed archives containing a group of related files or an entire...

  • How to Unzip Any File for Free

    The popular application that many people use to unzip file is Winrar. However, Winrar is a shareware that you have to pay...

  • How to Tar & Zip a File

    Tar and Zip are two UNIX utilities used to achieve a high degree of compression for backing up and transmitting files. Tar...

  • How to Extract TAR Files

    TAR files are directories that hold multiple data files. Though most TAR files are created on Unix-based computers, they can be extracted...

  • How to Unzip a Tar File

    Windows does not feature native support for .tar archives, predominantly used on Linux operating systems. If you want to use a .tar...

  • How to Unzip Files Online Without Any Software Downloads

    It can be frustrating with many different types of zip formats out their, having to download a software for each can clog...

  • How to Install an Unzip for Linux

    The unzip command on Linux extracts zip files, which are compressed archives containing one or more other files. Zip files are often...

Related Ads

Featured