how to zip a file in linux

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

//unzip it
unzip myfolder.zip
Source

Also in Shell: