Create new archive - compress
On the Linux system is very easy to compress the whole folder. We will use tar command with four arguments:
-z => compress archive with gzip
-c => create an archive
-v => verbose, which means to display progress
-f => filename of the archive
Example:
tar -zcvf name_of_archive.tar.gz /folder/path/to/dempress
Decompress our new archive
We created tar.gz archive now. Next step is to uncompress it. We can do this with the use of:
tar -zxvf name_of_archive.tar.gz /folder/to/decompress
where -x means => extract files