how to zip a file in linx

//zip a file or directory
zip -r myfolder.zip myfolder

//unzip it
unzip myfolder.zip