Differences
This shows you the differences between two versions of the page.
linux_wiki:gzip [2019/05/25 23:50] |
linux_wiki:gzip [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Gzip ====== | ||
+ | |||
+ | **General Information** | ||
+ | |||
+ | Gzip compression/ | ||
+ | |||
+ | **Checklist** | ||
+ | * Distro(s): Any | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Gzip Examples ====== | ||
+ | |||
+ | Compress an archive | ||
+ | <code bash> | ||
+ | gzip logs.tar | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Decompress an archive | ||
+ | <code bash> | ||
+ | gzip -d logs.tar.gz | ||
+ | OR | ||
+ | gunzip logs.tar.gz | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Cat a compressed file (useful for rotated logs) | ||
+ | <code bash> | ||
+ | zcat messages.1.log.gz | ||
+ | </ | ||
+ | |||
+ | ---- | ||