linux ubuntu how to create zip command from existing directory code example Example: linux zip a directory zip -r filename.zip /path/to/folder1