[[linux_wiki:gzip]]

Gzip

General Information

Gzip compression/expansion utility.

Checklist

  • Distro(s): Any

Gzip Examples

Compress an archive

gzip logs.tar


Decompress an archive

gzip -d logs.tar.gz
OR
gunzip logs.tar.gz


Cat a compressed file (useful for rotated logs)

zcat messages.1.log.gz

  • linux_wiki/gzip.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)