Monday, July 24, 2017

Quickly Zip and encrypt file/folder/sub-folders recursively with password

zip -er filename.zip  

-e = encrypt
-r = recursively

eg

zip -er documents.zip documents_folder

or

zip -er document.zip document.docx

will ask you for password before zipping

to zip without encryption simply


zip -r documents.zip documents_folder




No comments: