shell open tar gz file code example Example 1: tar.gz terminal tar -xzvf archive.tar.gz Example 2: install from tar gz file unix tar -xzvf filename.tar.gz