How to zip with password?

076

To create a password-protected zip archive, you can use the zip command with the -e option. Here’s the syntax:

zip -e archive.zip file1 file2

For example, to zip two files named file1.txt and file2.txt into a password-protected archive called secure.zip, you would run:

zip -e secure.zip file1.txt file2.txt

After executing the command, you will be prompted to enter and verify the password for the zip file.

0 Comments

no data
Be the first to share your comment!