tar.gz command in linux folder code example
Example 1: extract tar.gz linux command line
tar xvzf file.tar.gz
Example 2: tar.gz files
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