linux compress file to gz code example
Example 1: create tar gz file from directory
tar -czf tarball.tar.gz my_directory/
Example 2: gzip file
gzip [OPTION]... [FILE]...
gzip file.exe #To compress a file
gzip -d file.exe.gz #To decompress file