Unzipping gz
File
On Linux and macOS, you can decompress a .gz
file using the gzip
utility. The syntax is as follows:
gzip -d file.gz
The command will restore the compressed file to its original state and remove the .gz
file.
To keep the compressed file pass the -k
option to the command:
gzip -dk file.gz