What is file .tar.gz? How to create and unpack?

One of the best file compression tools available today

What is file .tar.gz? How to create and unpack?

It is powerful and faster.

I love winrar because it help my work.

What is file .tar.gz? How to create and unpack?

.tar file (often called a tarball) consists of many different files that are stored in a single file for easy storage or sharing. Instead of putting multiple files in a folder, you can group them into a .tar file.

.tar files are usually compressed after creation to become .tar.gz files. Most people call a .tar or .tar.gz file a "tar file".

Create .tar file

To create your own .tar file, enter the following command:

tar -czf [file.tar name] [folder name of the files to create]

How to open a .tar file?

If using macOS or Linux, use the following command in Terminal:

tar -xzf [file.tar name] [directory name of the files after decompression]

Note: Before that, you need to move to the folder containing the .tar file with the command cd..

In the above command, you see the -xzf paragraph, which is the additional syntax to perform each different function, including:

-v: Enable verbose mode, used to show status, notification or error during the command run.

-x: Extract.

-z: Use gzip for .tar.gz files (remove if the file only has a .tar extension).

-f: specify input file.

Open .tar file on macOS without Terminal

Instead of Terminal, the default Archive Utility tool on macOS helps you open .tar and .tar.gz files just by double clicking on the file to open in Finder.

Open the .tar file on Windows

On Windows, you can use 7-zip software to open it because the operating system does not support the default.

We new friends!