compress a folder linux zip code example
Example 1: zip entire directory ubuntu
zip -r compressed_filename.zip foldername
Example 2: compress a folder linux zip
tar -zcvf example.tar.gz directorytocompress/
zip -r compressed_filename.zip foldername
tar -zcvf example.tar.gz directorytocompress/