tar all files code example
Example 1: files tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: tar archive all files in directory
cd ..
tar czf workspace.tar.gz workspace
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
cd ..
tar czf workspace.tar.gz workspace