tar gz file how to make code example
Example 1: tar gz linux command
tar -czvf projects.tar.gz projects/
Example 2: tar.gz files
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -czvf projects.tar.gz projects/
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file