What is Tar.gz File? How to Open it on different Operating systems

This file system is also called as a tarball. It’s a group of files wrapped up in one single file to ensure easy and convenient storage. When you store files in this format, you needn’t to keep track of whole folder of files. Instead, you only need to keep track of one. When Tar files are created, they are compressed and saved with tar.gz file extension.

How Do I Open a Tar gz File on Linux and MacOS?

In case you’re using macOS or Linux, you can run a single command to run the .Tar files. In the example, we assume tarfile is the name of your file:

tar -xzf tarfile

The command is available with few pre-defined flags that you can use:

-v: Enables verbose mode, showing the progress of the command
-x: Extract
-z: Uses gzip, omit this if you just have a .tar
-f: specifies file input, rather than STDIN

It’s easy to create a tar file. Just replace the -x with a -c to “Create.

DO NOT MISS:   New HD Digital Printing System Cuts Cost Per Print

Furthermore, if you hate using terminals to create or run tar files, macOS can open tar and tar.gz files by default with the Archive Utility. Just double click on the file, and it will extract. On Windows as well, you’re required to install an external program like 7-Zip or Winrar to open them.

Genelia Timothi

Genelia is the chief editor at Bloggingrepublic.com and manages our Content Writing projects. She is an avid freelance writer / editor with 8+ years of experience in working with top notch online publication viz. Huffpost, IB Times and Yahoo.
Genelia Timothi

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Notify of