How To Open GZ File In Linux?

Use `gunzip file.gz` to decompress the file

Use `gzip -d file.gz` to decompress the file

Use `zcat file.gz` to view the contents without extracting

Use `less file.gz` if the file is plain text and supported by your system

Use `tar -xzf file.tar.gz` if the file is a tar archive compressed with gzip

Use `tar -tzf file.tar.gz` to list the contents of a tar.gz archive

Use `7z x file.gz` if 7-Zip is installed

Use `file file.gz` to check the file type before opening

Suggested for You

Trending Today