how to unzip a tar file in linux code example
Example 1: extract tar.gz ubuntu terminal
tar -xvf yourfile.tar.gz
Example 2: how to unzip Tar file
tar -xvf filename.tar.gz
tar -xvf filename.tar.gz -C /path_name_for_unzip/
-x : extract
-C : specified directory
-v : Verbosely show the .tar file progress.
-f : filename of archive file
Example 3: uncompress tar
tar -xvf filename.tar
Example 4: how to unzip using tar
tar -xf archive.tar.gz
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
tar -xf archive.tar.gz -C /home/linuxize/files
Example 6: Unzip tar file
tar xvf spark-*