The zip command is a utility on Unix-like systems for creating and manipulating zip archive files.
Here are some common examples of how to use the zip command:
zip -r archive.zip directory
This will create a zip archive called archive.zip containing the contents of the directory directory.
-u option:zip -u archive.zip file
This will add the file file to the archive.zip archive.
-d option:zip -d archive.zip
This will extract the contents of archive.zip to the current directory.
-l option:zip -l archive.zip
This will list the contents of archive.zip.