zip -r archive.zip dir/

Category: Archiving & Compression

zip -r archive.zip dir/

Create a zip archive of a directory recursively

Creates a zip archive of an entire directory and all its contents. -r means 'recursive'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.