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