tar for .gz files code example
Example 1: extract tar.gz
tar -xf archive.tar.gz
Example 2: files tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xf archive.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file