untar .tar code example
Example 1: tar unpack
tar -xzf packed.tar.gz
Example 2: untar .tar file
tar -xvf yourfile.tar
Example 3: unarchive tar acrhive
tar -xvf file.tar etc/resolv.conf
tar -xzvf file.tar.gz etc/resolv.conf
tar -xjvf file.tar.bz2 etc/resolv.conf
#Extract files into a specific folder
tar -xf archive.tar.gz -C /home/linuxize/files