Open-The-File.com

Trusted file extension guides and opening help from the original project since 2008.

How to open .GZ files on Linux

To open .GZ files on Linux, use gunzip filename.gz or gzip -d filename.gz..

Step-by-step instructions

  1. Use gunzip filename.gz or gzip -d filename.gz.
  2. Use tar -xzf for .tar.gz archives.

Recommended software

  • Built-in extractor
  • 7-Zip
  • WinRAR

Alternative methods

  • Open .GZ in a browser-based viewer if desktop apps fail.
  • Try opening .GZ on Linux with a secondary app to rule out app-specific issues.
  • Convert .GZ only with trusted tools when direct opening is not possible.

Common issues

Decompressed file has no extension

The original filename may not include a standard extension.

  1. Inspect file with file command on Linux/macOS.
  2. Open in a text editor to identify content type.
  3. Rename only after confirming actual format.

Security note

Compressed files can hide malicious payloads.

Back to .GZ extension page