zip -0 -r mydir.zip mydir
Here is what the above code is Doing:
1. The -0 option tells zip to store only.
2. The -r option tells zip to recurse into directories.
3. The first argument is the name of the zip file we want to create.
4. The second argument is the name of the directory we want to zip.