Unzip password protected zip on unix

I need to create a shell script in which I will unzip the password protected zip file. I know the password and should automate the unpacking process.

How can I achieve this using Unix shell scripts?

+8
source share
2 answers
unzip -P your-password zipfile.zip

man unzip

-P password

zipfile ( ). ! ; . script . , . ( , , Pretty Good , zipfile.)

+16

Ubuntu 7zip (7z) , :

sudo apt-get install p7zip-full

Ubuntu Archive Manager, zip , .

+3

Source: https://habr.com/ru/post/1669505/


All Articles