how to archive as tar.gz code example
Example 1: how to untar tar.gz
tar xvzf file.tar.gz
Example 2: files tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar xvzf file.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file