Like the windows, gz is common compression utility in Linux. This guide is to extract content of the .gz file by gunzip utility. Here is the command to see and extract content of the gz file.
View gz file content
gunzip -c mybackup.gz
Extract file file content in another file. you can use different file extension depend on the content of file.
gunzip -c mybackup.gz > mybackup.sql
Compress the mybackup.sql file as mybackup.gz in the current directory.
gunzip -c mybackup.sql > mybackup.gz
Here is the full details of the gzip command.






