Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
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

Discussion (0)