tar how to extract code example Example 1: tar unpack tar -xzf packed.tar.gz Example 2: extract tar.gz ubuntu terminal tar -xvf yourfile.tar.gz