Zipping folders and their contents into a .zip file in Linux

zip -r foo.zip dir_path

Try:

zip -r filename.zip /path/to/folder

Note - this will go recursively, i.e. it will zip all folders and all subfolders of the given folder.