How to Unzip a Tar.gz in Linux

How to Unzip a Tar.gz in Linux thumbnail
The tar format was originally used with magnetic tape storage systems.

Tar is a file archive format that was originally used with magnetic tape storage systems. Unlike with other formats, tar archives are uncompressed, and so are often compressed using the Gzip format before distribution over the Internet as tar.gz files. Tar is also the name of a program used to work with tar archives, and according to DistroWatch is packaged by default with all of the 10 most widely used Linux distributions.

Instructions

    • 1

      Open a command line interface terminal if you are using a graphical interface. In most cases, the Terminal application can be found in one of the major program categories by default.

    • 2

      Run tar using the following command:

      tar -xzf /filepath/filename.tar.gz

      where "/filepath" is a reference to the directory that contains the tar.gz file, and "filename" is the name of the file. The "z" option is important, as it specifies that the file should be unzipped before unpacking the tar archive.

    • 3

      Wait for the process to complete, then find your unpacked files in the same directory as the tar.gz file. For large files that take time to unpack, add "v" to the options to receive more detailed output throughout the unpacking process.

Related Searches:

References

  • Photo Credit tape image by Frank-Peter Funke from Fotolia.com

Comments

You May Also Like

  • How to Unzip a Tar GZ File in Linux

    The .tar.gz file format is a compressed file format that is used on Linux operating systems to bundle files together for easier...

  • How to Unzip .Tar in Linux

    Tape archive, or tar, is a common compression format used in Linux. You can unzip, or extract, the contents of a compressed...

  • How to Unzip a GZ File in Linux

    GZ files are archive files compressed with the "gzip" program, similar to zip files. These archive files contain one or more files,...

  • 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 Unzip Tar GZ in Windows

    When downloading files, you may encounter files with the tar.gz extension. For Windows users, these may be unusual files, since files using...

  • How to Unzip GZ Files

    GZ files are compressed archives that contain groups of files within them. Like ZIP or RAR files, GZ archives need to be...

  • How to Unzip a Tar.gz

    Extracting archive files expands their contents. While Microsoft Windows can extract, or unzip (as the process is known with .zip archives) ZIP...

  • 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 Unzip a Tar GZ File

    Tar GZ is an archiving format that is used to compress and store information. While Tar GZ files are becoming more ubiquitous,...

  • How to Unzip a Tar.GZ Unix File

    Unix-based operating systems such as Linux and Mac OS X use ".tar.gz" files to combine and compress multiple files for storage purposes...

Related Ads

Featured