zip [-AcdDefFghjklLmoqrRSTuvz@$] [-b path] [-n suffixes] file.zip file(s) [-x xfile(s) ...]List, test and extract compressed files in a ZIP archive.
file(s) Work only with the files specified by file(s) in file.zip. -A Ajust self-extracting archive. -c Add one-line comments for each file (prompts user). -d Delete entries from the zipfile. -D Do not create directory entries in the zipfile. -e Encrypt the archive (will prompt for password). -f Freshen existing entries in the zip archive (update if file on disk is newer than file in archive). -F Fix the archive if some parts are missing (may not work, so make a backup). -g Grow the zip archive instead of creating a new one. -h Display help information. -j Junk paths; do not create directory structure in the zip. -k Attempt to convert names and paths to conform to MS-DOS non-LFN naming conventions. -l Translate LF into CR/LF line endings. -ll does the opposite. -L Display zip's license. -m Move the files into the zip archive (delete the files on disk after adding). -o Set the last-modified time of the zip archive to the latest last-modified time of a file in the zip archive. -q Quiet mode. -r Travel the directory structure recursively. -R Travel the directory structure recursively starting at the current directory. -S Include files marked with the hidden and system attributes. -T Test the integrity of the zip file. -u Replace an existing entry in the zip archive if it has been modified more recently than the version already in the zip archive. -v Print verbose or diagnostic messages. -z Prompt for a multi-line comment for the entire archive, ended by a line with only a period or an EOF character (Ctrl-Z). -@ Take the list of input files from standard input (one file per line). -$ Include the volume label for the drive containing the first file to be compressed. -b path Use path for the temporary zip archive. -n suffix(es) Do not attempt to use filenames ending in suffix(es) (seperated by colons or semicolons). -x file(s)... Explicitly exclude file(s)....
In DOS, adding files with long filenames is unsupported unless using zip32.exe, compiled by DJGPP and while using an LFN driver.
The ZIPOPT or ZIP environment variables can also be used to specify options.