gz file code example
Example 1: gzip file
gzip [OPTION]... [FILE]...
gzip file.exe #To compress a file
gzip -d file.exe.gz #To decompress file
Example 2: how to read .gz file
zcat logfile.gz
gzip [OPTION]... [FILE]...
gzip file.exe #To compress a file
gzip -d file.exe.gz #To decompress file
zcat logfile.gz