zip

Published 2025-03-20

Zip a folder recursively

zip -r wme.zip scan_folder

Where wme.zip is the name of the zip you wanna zip, and scan_folder is the name of the folder you want to recursively zip.

Zip a folder with encryption

zip -er wme.zip scan_folder

Zip everything in the current directory except specific extensions

Like if you wanted to zip everything except .doc and .docx files:

zip -r reports.zip . --exclude "*.doc" --exclude "*.docx"