untar code example
Example 1: extract tar.gz ubuntu terminal
tar -xvf yourfile.tar.gz
Example 2: untar
# Extract and uncompress a tar.gz file
tar -xvzf foo.tar.gz
tar -xvf yourfile.tar.gz
# Extract and uncompress a tar.gz file
tar -xvzf foo.tar.gz