How to Unzip a GZ File in Unix

How to Unzip a GZ File in Unix thumbnail
Unzip a Gzip file in Unix or Linux.

Unix systems support a large number of file compression utilities that vary in the extent of compression provided. The Gzip utility creates GZ files that have a relatively high level of compression. Hence, the Gzip utility is used quite often to package downloadable software installation packages as well as other files. A simple command line procedure can be used to unzip a GZ (Gzip) file.

Things You'll Need

  • Unix, Linux or BSD computer with the Bash shell and Gzip installed
Show More

Instructions

    • 1

      Login to the computer with an account that has administrator privileges or permissions to run the Gzip utility.

    • 2

      Navigate to the GZ file that you need to unzip by typing "cd /home/useraccount/" and pressing the "Enter" key. Substitute "/home/useraccount/" with the exact path where the file is located.

    • 3

      Type "gzip -d filename" and press the "Enter" key, substituting "filename" with the name of the GZ file to unzip. The files should now be unzipped in the current directory location. If the Gzip utility did not run or unzip the file, proceed to the next step.

    • 4

      Type "find / -name gzip" and press the "Enter" key. View the command line output, which will display the exact path of the Gzip executable program file. Then type "/usr/local/bin/gzip -d filename" and press the "Enter" key, substituting the "/usr/local/bin/" with the exact path to the Gzip utility. The files should now be unzipped in the current directory location.

Related Searches:

References

  • Photo Credit computer image by blaine stiger from Fotolia.com

Comments

You May Also Like

  • 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 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...

  • 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 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 a ZIP File in Unix

    The ZIP file format is a data compression and archive format. A ZIP file contains one or more files that have been...

  • 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

    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 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 Multiple Files by Mask in UNIX

    Zipping refers to various program methods that permit you to compress files and hence reduce their size. Before working with zipped files...

  • How to Unzip a Z File in Unix

    "Z" files consist of any number of files that have been compressed together into one file using the Unix/Linux "compress" utility. Compressing...

  • How to Unzip a File in Unix

    There are three types of data compression formats commonly used in UNIX: .zip, .tar and .gz. The ZIP file format is most...

  • How to Unzip GZ Files in Windows

    Gzip stands for GNU zip. The utility was writtel to be distributed freely with full source code by Jeal-loup Gailly and Mark...

  • How to Unzip Multiple Files in Unix

    Unix is an operating system that uses a command-line interface. A free and widely popular version called Linux uses the same commands...

  • How to Unzip a Tar.gz in Linux

    Tar is a file archive format that was originally used with magnetic tape storage systems. Unlike with other formats, tar archives are...

  • How to Unzip Cpio.gz

    Files with the GZ extension are compressed with a method called GNU Zip compression. These types of archives are typically found in...

  • How to Unzip in GZ Format

    Individually sending a large number of files from one computer to another is a time-consuming task. Instead, most people combine multiple files...

  • 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 TAR Files in Unix

    TAR is a command line utility used most often in Unix variants including Unix systems, BSD and Linux. The TAR utility provides...

  • What Is the File Extension GZ?

    Unix is a type of operating system commonly used for Internet servers. A number of file extensions are associated with Unix, including...

  • 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...

Related Ads

Featured