linux compress to zip code example
Example 1: compress a folder linux zip
tar -zcvf example.tar.gz directorytocompress/
Example 2: how to use compress zip cli linux
zip chooseName.zip foldername
ex. zip folder.zip /home/data/*
tar -zcvf example.tar.gz directorytocompress/
zip chooseName.zip foldername
ex. zip folder.zip /home/data/*