how to extract gz file ubuntu code example Example 1: extract gz file ubuntu gzip -d file.gz Example 2: create gz in ubuntu gzip -9 yourName_db.sql