To use zip command on Linux Ubuntu is very easy but has some requirements

First need to install ZIP software. Please note ZIP and Unzip software require seperate installations.

To install ZIP in Ubuntu using command prompt use
apt-get install zip

Then use the syntax command as follows
zip -r /locationofthefoldertobezipped

Example I used
zip -r /home/demo/public_html/

to zip the content of the folder ’emaildata’

The zipped file is stored in the ‘root’ folder.

Please ask if you have any questions.