what is a tar file code example
Example 1: tar file
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: .tar
tar -xf /path/to/archive.tar # unzip .tar
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xf /path/to/archive.tar # unzip .tar