wextract tar gz in linux code example Example 1: tar.gz terminal tar -xzvf archive.tar.gz Example 2: tar gz linux command tar -czvf projects.tar.gz projects/