gz linux command line 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
Example 3: create gz in ubuntu
gzip -9 yourName_db.sql