tar tar file code example
Example 1: untar .tar file
tar -xvf yourfile.tar
Example 2: tar file
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xvf yourfile.tar
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file