24

is there a way to add a password to an existing .zip file in Ubuntu?

1 Answer 1

35

To encrypt a zip file after it has been created, you can use zipcloak

The syntax is:

zipcloak foo.zip

You will be prompted to give the password for the zip file called foo.zip

You can zip a file(s) in creating a zip file using the -e parameter i.e.

zip -e foo.zip file1
1
  • 5
    Damn, didn't even know that was already installed on my system. Both Ubuntu and on macOS. Nice one! Oct 19, 2017 at 17:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .