You need to use gzip/gunzip program to open/extract a .gz file. It is based on DEFLATE algorithm. All the Linux/Unix comes with default gzip/gunzip program as it is used as primary compression technique in Linux/Unix based system.
How to extract a .gz file?
gzip -d yourcompressfile.gz
-d refers to decompress the gzip file.
To view the latest file, type
How to extract tar.gz file?
tar.gz files are tar files compressed with gunzip. You can use the tar program in Linux to extract a tar.gz file as following:
tar -xvzf yourfile.tar.gz
Here, x = extract, v = verbose, z = gzip, f = force
If the tar file isn’t compressed with gunzip, then you need to exclude the ‘z’ option which would be as following:
tar -xvf yourfile.tar