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