extract file from tar.gz code example Example 1: unzip tar.gz tar -xvf file.tar.gz Example 2: untar tar.gz tar -xzf file.tar.gz