Quickly restore files from .gz archives with a single, dependable command. 20.03.2026 | reading time: 2 min Meet gunzip: the simple tool to decompress .gz files quickly and reliably on Linux, useful when logs, single-file archives or transfers arrive compressed and you need the original file back; it is the straightforward inverse of gzip and integrates with pipes and scripts. Try it now Create a tiny sample and watch gunzip in action; run the following to compress and then decompress a file: ```echo Hello > report.txt; gzip -9 report.txt; ls -lh report.txt.gz; gunzip report.txt.gz; ls -lh report.txt``` Note how `gunzip` restores the plain file and removes the .gz by default. Options that matter Use `-c` to write decompressed data to stdout, for example `gunzip -c file.gz > file`, which keeps the archive; use `-k` to keep the original .gz file, `-f` to force overwrite, `-l` to list compressed file info and `-t` to test integrity; `gunzip` also accepts multiple files and reads from stdin when no filename is provided. Related utilities Combine gunzip with other tools: `gzip` creates .gz files, `zcat` prints decompressed data to stdout, `tar` bundles multiple files before compression, and parallel compressors like `pigz` speed up the creation of .gz archives on multi-core systems; choose the right tool for single-file versus multi-file workflows. Next steps Practice by decompressing real logs and piping results into filters like `grep` or `less` to build muscle memory; when comfortable, explore scripting patterns that detect and auto-decompress .gz files as part of backup or processing pipelines, and consider formalizing your skills with certification training such as CompTIA Linux+ or LPIC-1 at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities backup storage