tar to tar.gz linux code example Example 1: untar tar.gz tar -xzf file.tar.gz Example 2: tar gz linux command tar -czvf projects.tar.gz projects/