$ zip -r archive.zip src -x '*.log'
$ zip -9 -j out.zip a.txt b.txt
| -0 | store only — no compression |
| -9 | compress better (slowest) |
| -r | recurse into directories |
| -q | quiet — suppress normal output |
| -v | verbose output (or print version when used alone) |
| -e | encrypt the archive, prompting for a password |
| -m | move files into the zip — delete the originals after adding |
| -j | junk paths — store just the file names, not directories |
| -u | update — add new files and replace changed ones |
| -x | exclude files matching the given pattern |
| -i | include only files matching the given pattern |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.