how to zip a folder using terminal code example
Example 1: compress file in terminal
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: create zip file ubuntu
zip -r output_file.zip file1 folder1
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
zip -r output_file.zip file1 folder1