how to extract tar code example
Example 1: extract tar linux
tar -zxvf file_name.tar.gz
Example 2: uncompress tar
tar -xvf filename.tar
Example 3: extract tar
tar -xvf file.tar
Example 4: tar.gz files
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 5: 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