-   Linux - General (
-   -   How do I extract password pretected .zip files in linux (

i_s 03-25-2005 03:36 AM

How do I extract password pretected .zip files in linux

I am wondering how do I extract password protected .zip in linux (I am using Suse 9.2). I have the password, Ark can see the contents of the files but whenever I try to extract them I get an error!


pk21 03-25-2005 04:19 AM

man unzip:

-P password
use password to decrypt encrypted zipfile entries (if any).
THIS IS INSECURE! Many multi-user operating systems provide
ways for any user to see the current command line of any other
user; even on stand-alone systems there is always the threat of
over-the-shoulder peeking. Storing the plaintext password as
part of a command line in an automated script is even worse.
Whenever possible, use the non-echoing, interactive prompt to
enter passwords. (And where security is truly important, use
strong encryption such as Pretty Good Privacy instead of the
relatively weak encryption provided by standard zipfile utili-

i_s 03-25-2005 04:47 AM


I was also able to locate that. I used the command

unzip -P password zipfile

Thanks again.


All times are GMT -5. The time now is 02:45 PM.