terminal tar current directory code example
Example 1: linux tar zip folder
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