extract gzip file ubuntu code example Example: how to unzip gzip files in terminal for a .gz file use: gunzip name_of_file.gz