gunzip
gunzip is a Linux command in the Archives & Compression category, rated intermediate difficulty. Decompresses .gz files created by gzip. The syntax is gunzip [options] [file.gz]. Key options and parameters: file.gz — gzip file to decompress. It returns decompressed file. A practical example: gunzip file.txt.gz gunzip -c file.txt.gz > output.txt # Decompress to stdout gunzip -k file.txt.gz # Keep .gz file A close relative is tar, which creates and extracts tar archives. The standard Unix archiving tool. A close relative is gzip, which compresses files using Lempel-Ziv coding. Produces .gz files. A close relative is zip, which creates compressed ZIP archives (cross-platform format). More about this category: Linux archive commands — tar, gzip, zip, unzip, and more. Compress and extract files and archives. Related Archives & Compression commands: tar, gzip, zip, unzip, xz, zcat, bunzip2, bzip2. This page is part of the free Linux Reference documentation covering 304+ commands, each with syntax, options, practical examples, and a difficulty rating.