Tar Commands

Tar Command

Below commands are for using tar to compress/un-compress the files.


#To create a tar.gz archive from a given folder you can use the following command 
tar -zcvf tar-archive-name.tar.gz source-folder-name 

#To extract a tar.gz compressed archive you can use the following command 
tar -zxvf tar-archive-name.tar.gz