how to zip folder in linux command line code example Example: linux zip a directory zip -r filename.zip /path/to/folder1