extract tar.gz file on windows code example Example 1: unzip tar.gz tar -xvf file.tar.gz Example 2: extract tar gz tar -xvf archive.tar.gz