Linux Commands Helper

💬 Your AI-powered Linux assistant

gunzip Command - Decompress .gz Files

The gunzip command is used to decompress files that were compressed using gzip. It is commonly used to restore files from .gz archives on Linux and other Unix-like systems.

Syntax

gunzip [options] file.gz

Examples

gunzip file.txt.gz

Decompress file.txt.gz to file.txt.

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

Decompress to standard output and redirect to a file.

gunzip -k file.txt.gz

Decompress file.txt.gz but keep the original .gz file.

Notes

  • gunzip is equivalent to gzip -d.
  • gunzip only decompresses files compressed with gzip.
  • Use tar for extracting .tar.gz or .tgz archives.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame