Zipping a file

Hi All,
Can any one pls tell me how to zip a file through the terminal window in mac os x.

Thanks in advance
Suresh

$zip archive.zip ./sourcefile.txt

or

$zip -r archive.zip ./folder