gzip do?compress files with gzip (replaces the original with .gz).
▸ Explain your own gzip command →$ gzip -k big.log
$ gzip -d archive.gz
| -9 | compress best (slowest); -1 is fastest, least compression |
| -d | decompress instead of compress |
| -k | keep the input file instead of deleting it |
| -c | write to standard output, keep the original |
| -r | recurse into directories |
| -f | force — overwrite existing files / compress links |
| -v | verbose — show the name and compression ratio |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.