gunzip

Decompress gzip files

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Equivalent to gzip -d; removes the .gz after decompressing unless -k is used.

Common flags
FlagMeaning
-kKeep the compressed file
-cWrite to stdout
-tTest integrity
Examples
gunzip -k file.gzDecompress and keep the original · explain & risk-check →
gunzip -c file.gz | headPeek without writing a file · explain & risk-check →
Related
gzip zcat tar
Open the full explainer →More in Files & Archives

Reference text is hand-written and may be incomplete — check man gunzip for your version. Test destructive commands on a non-production system first.