Using tar to compress folders in Unix


To compress:
tar -cf pictures.tar pics/; gzip pictures.tar

Or if you want to combine the gzip and the tar creation in one command:
tar -czf pictures.tar.gz pics/

To decompress:
gunzip pictures.tar.gz; tar -xvf pictures.tar



Comments

Popular posts from this blog

Scan FC LUN's in RHEL/CentOS

CEPH bluestore using ceph-ansible

How to enable federated engine in MySQL