Hackerss.com

Manuel Montero
Manuel Montero

Posted on

Compress a Folder with TAR on command line Linux

The main purpose of the Tar command on Linux is to join multiple files into one, however you can use the flag -z to use gzip compression as follow

tar -czvf  output-file-name.tar.gz folder-to-compress/
Enter fullscreen mode Exit fullscreen mode
Flag Are
-c Create new archive
-z Compress the file using gzip
-v Verbose print more outputs
-f Name of the new file

Latest comments (0)