zip
SafeCreate ZIP archives
zip -r <archive.zip> <dir>
Creates Windows-friendly ZIPs. -r recurses into dirs; -e adds a password. The go-to for file handoffs.
Examples
zip -r logs.zip /var/log/nginxZip a directory
Syntax
zip [-r] [-e] <archive> <files>
Before you run it
Creation only.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store