$ gunzip archive.gz
$ gunzip -k data.gz
$ gunzip -c logs.gz | less
| -k | keep (don't delete) the compressed input file |
| -c | write the result to stdout and keep the original |
| -f | force decompression, overwriting existing files |
| -v | verbose — show name and compression ratio |
| -t | test the integrity of the compressed file without extracting |
| -l | list the contents and compression stats of an archive |
| -r | recurse into directories, decompressing every file |
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.