extract gz file ubuntu

C++
gunzip -k file.gz
gzip -d file.gzUnzip a . GZ file by typing "gunzip" into the "Terminal" window
Source

Also in C++: