compress file to tar.gz linux command 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
tar -czvf projects.tar.gz projects/
tar xvzf file.tar.gz