How to create an archive .tar.gz (GZip) without application installed on MacOS

You probably know on Mac OS X / MacOS a .ZIP archive can create very simpleBy selection of folders and folders that are to be archived, right-click, and the "context menu" select the option "Compress Files No."

In the current folder will be created archive file named ""

A more advanced form of archiving, used especially when we made archives that contain many files and folders, .tar.gz.
.tar.gz (GZIP) It comes with a archiving algorithm developed for UNIX / Linux systems.DEFLATE algorithmUsed to enable GZIP archive Better compression files with minimal or nonexistent. .ZIP Archives happens very often that archived files appear as "corrupt"And unusable.

users MacOS very simple to archive files from one or more folders using command line in Terminal.

The command line for archiving .tar.gz from Terminal is the same as on Linux:

-cvzf tar nume_arhiva.tar.gz folderdearhivat

In the scenario shown in the screenshot above, you will create the "wp-content.tar.gz" archive of the WordPress "wp-content" folder.

If you want to archive all pictures in a folder, you can use the command line:

-cvzf tar nume_arhiva.tar.gz /calea/folder/poze/*.jpg

Using "*" before the extension ".jpg", you only archive files using this extension.

Extracting an archive .tar.gz is via the command line:

tar -xvf nume_arhiva.tar.gz

Order archiving can be combined with advanced parameters. Use "-R"To archive for example, all pictures from several folders, ignoring other files that can be found there.

How to create an archive .tar.gz (GZip) without application installed on MacOS

About the author


Passionate about everything that means gadgets and IT, I write with pleasure from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment