Table of Contents

TAR File Management

In all these examples we gunzip the outputting tar file to reduce the file size

Create Tar containing a folder

tar -zcvf file-name.tar.gz source-folder

Create Tar containing a folder (preserving permissions)

tar -pcvzf file-name.tar.gz source-folder

Extract Tar

tar zxfv file-name.tar.gz