Decompress gzip files
low risk
Equivalent to gzip -d; removes the .gz after decompressing unless -k is used.
| Flag | Meaning |
|---|---|
-k | Keep the compressed file |
-c | Write to stdout |
-t | Test integrity |
gunzip -k file.gzDecompress and keep the original · explain & risk-check →gunzip -c file.gz | headPeek without writing a file · explain & risk-check →Reference text is hand-written and may be incomplete — check man gunzip for your version. Test destructive commands on a non-production system first.