untar unix code example
Example 1: extract tar.gz ubuntu terminal
tar -xvf yourfile.tar.gz
Example 2: uncompress tar
tar -xvf filename.tar
Example 3: extract tar to destination
tar xf file.tar.gz -C /root/Desktop/folder
tar -xvf yourfile.tar.gz
tar -xvf filename.tar
tar xf file.tar.gz -C /root/Desktop/folder