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