Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

gunzip

Decompress gzip format files

Syntax

gunzip [OPTION]... [FILE]...

Common Options

-cWrite to stdout
-kKeep compressed file
-fForce decompress
-rRecursive decompress
-lList compressed file info
-tTest integrity
-vVerbose output
-nNo original filename

Common Examples

gunzip file.txt.gz

Decompress gzip file

gunzip -k file.txt.gz

Decompress keeping .gz

gunzip -c file.txt.gz > newfile.txt

Decompress to stdout

gunzip -r directory/

Recursive decompress

gunzip -t archive.gz

Test archive integrity

gunzip -f file.txt.gz

Force decompress

Related Commands

Related Tools

More Code & Dev Tools