.tar.gz files are what code example
Example 1: extract tar.gz
tar -xf archive.tar.gz
Example 2: tar.gz files
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