gzip

A compression utility for .gz compressed data format. gzip is single-file or stream lossless compression.

Cheatsheet

gzip <options> <filenames>

Common Option Flags:

  • -d: Decompress
  • -f: Forcefully compress, even if there's a compressed file
  • -k: Compress and keep the original file as well
  • -r: Recursively compress all files in a folder and subfolders.
  • -v: Show stats.