Compress and uncompress

 

tar -zcvf archive-name.tar.gz directory-name
-z : Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name

Compress a folder
tar -zcvf some-name.gz /home/dude/folder

and Extract the same folder
tar -zxvf prog-1-jan-2005.tar.gz

Posted on: Saturday 20 May 2017