gz file unzip linux command code example Example 1: how to decompress gzip file in linux Click to copygunzip -k file.gz Example 2: extract gz file ubuntu Click to copygzip -d file.gz