creating a tar code example Example 1: tar.gz terminal tar -xzvf archive.tar.gz Example 2: tar directory tar -czvf archive.tar.gz stuff