tar file code example
Example 1: archive tar
tar -czvf archive.tar.gz /usr/local/something
Example 2: files tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 3: tar file
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 4: .tar
tar -xf /path/to/archive.tar # unzip .tar