Quantcast
Viewing latest article 1
Browse Latest Browse All 10

Can the encryption option with Info-ZIP on Linux be used from the command line?

Image may be NSFW.
Clik here to view.
Question

Can the encryption option on Info-ZIP be used from the command line? The zip man page says:

-e
–encrypt Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will
not be echoed; if standard error is not a tty, zip will exit with an
error). The password prompt is repeated to save the user from typing
errors.

Is there a way to create zipped files from an unattended script?

Image may be NSFW.
Clik here to view.
Answer

Using -P will allow you to pass the password on the command line.


Viewing latest article 1
Browse Latest Browse All 10

Trending Articles