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