bash open tar.gz code example
Example 1: tar gz linux command
tar -czvf projects.tar.gz projects/
Example 2: extract tar.gz linux command line
tar xvzf file.tar.gz
Example 3: tar.gz files
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file