Compress a file:
gzip <file>
Compress a directory and all its files:
gzip -r <dir>
Decompress a file:
gzip -d <file.gz>
Write compressed data to standard output:
gzip -c <file>
List the information of compressed files:
gzip -l <file.gz>