Quantcast
Channel: Admins Goodies » compression
Viewing all articles
Browse latest Browse all 10

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

$
0
0

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?

Answer

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


Viewing all articles
Browse latest Browse all 10

Trending Articles