Compress - Uncompress a whole linux folder from command line
COMPRESS
tar -zcvf archive-name.tar.gz directory-name
Where:
-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name
DECOMPRESS
tar -zxvf archive-name.tar.gz directory-name
Where:
-z: Compress archive using gzip program
-x: Extract files
-v: Verbose i.e display progress while creating archive
-f: Archive File name