how to zip a file in linx

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

//unzip it
unzip myfolder.zip
Source

Also in Shell: