zip all files in a directory ubuntu code example
Example 1: zip entire directory ubuntu
zip -r compressed_filename.zip foldername
Example 2: create zip file ubuntu
zip -r output_file.zip file1 folder1
zip -r compressed_filename.zip foldername
zip -r output_file.zip file1 folder1