Compress

tar -zcvf <destination_name>.tar.gz <folder1> <folder2> <file1>

Extract

# destination could be . if you want to xtract here
tar -zxvf <archive_name> <destination>

Categories: Bash

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.