Wie entpacken Passwort geschützt.zip-Datei mit Terminal?
Ich muss eine .zip
- Datei entpacken, die mit Terminal
Ich bin in der Lage zu entpacken .zip-Datei (wenn sie nicht passwortgeschützt ist) mit diesem Befehl
unzip /Users/vikas/Desktop/as.zip -d /Users/vikas/Desktop/new\ folder
Hinweis: Ich muss das Passwort im Befehl übergeben. Ich weiß, wann es nach dem Passwort fragt, aber mein Szenario ist anders, da ich das Passwort im Befehl selbst übergeben muss (zB -p "my password"
in Linux).
22
4 answers
Verwenden Sie das Argument -P password
, um das Passwort an unzip
zu übergeben:
unzip -P password /Users/vikas/Desktop/as.zip -d /Users/vikas/Desktop/new\ folder
25
Author: greg-449,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2016-01-07 11:41:13
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2016-01-07 11:41:13
Bei AES-Verschlüsselung funktioniert unzip nicht. In einem solchen Fall macht 7z den Trick perfekt:
7z x <archive_name>
6
Author: iskramac,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-07-02 06:14:40
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-07-02 06:14:40
Sie können "Unarchiver " dafür verwenden, funktioniert perfekt.
5
Author: stixer,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2017-12-04 09:51:35
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2017-12-04 09:51:35
Irgendwann funktioniert der Befehl unzip
bei mir nicht, daher löst das Ersetzen von unzip durch ditto
das Problem:
ditto -V -x -k --password --sequesterRsrc --rsrc FILENAME.ZIP DESTINATIONDIRECTORY
0
Author: Long Nguyen,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-12-03 01:33:55
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-12-03 01:33:55