In this video I go over the basics of using command line compression utilities like gzip, bzip2, xz and 7zip. I use these on a Mac but they are also standand on most Linux distributions.
Installing Macports: https://youtu.be/N22Ic6ZRPXI
List Files
ls -lh
View Gzip Help
gzip -h
Compress tar Archive with Gzip
gzip -9 data.tar
Uncompress tar Archive with Gzip
gzip -d data.tar
Compress tar Archive with Gzip (keep original file)
gzip -9c data.tar > data.tar.gz
Compress tar Archive using 7zip
7z a data.tar.7z data.tar