tar gz ubuntu code example
Example 1: extract tar.gz ubuntu terminal
tar -xvf yourfile.tar.gz
Example 2: tar.gz terminal
tar -xzvf archive.tar.gz
Example 3: tar gz linux command
tar -czvf projects.tar.gz projects/
Example 4: how to tar
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file