Compressing data

Compressing Directory:

tar -zcvf archive-name.tar.gz directory-name

Add date:

tar -zcvf filename_$(date +%y%m%d).tar.gz directory-name

Decompressing File:

tar -zxvf archive-name.tar.gz

Note: I always do -v as I would like to see what’s happening and it looks cool. \@_@/

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *