{"id":259,"date":"2023-09-02T09:29:22","date_gmt":"2023-09-02T07:29:22","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=259"},"modified":"2023-09-02T09:29:23","modified_gmt":"2023-09-02T07:29:23","slug":"komprimierte-zip-archive-unter-linux-auf-dem-terminal","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/komprimierte-zip-archive-unter-linux-auf-dem-terminal\/","title":{"rendered":"Komprimierte ZIP-Archive unter Linux auf dem Terminal"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ZIP ist wohl das bekannteste Archiv-Format f\u00fcr komprimierte Archive unter allen Betriebssystemen. Unter Linux erstellen und entpacken Sie solche ganz einfach auf der grafischen Oberfl\u00e4che per Rechtsklick:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip-1024x576.jpg\" alt=\"\" class=\"wp-image-260\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Auf dem\u00a0Terminal\u00a0gelingt die Aufgabe nicht viel schwieriger, um beispielsweise das komprimierte Archiv &#8222;Dateiname.zip&#8220; zu entpacken nutzen Sie ganz einfach den Befehl &#8222;<strong>unzip<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>unzip Dateiname.zip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ist das ZIP-Archiv mit einem Passwort gesichert werden Sie vor dem Entpacken nach diesem gefragt. Mit der Option &#8222;<strong><code>-d<\/code><\/strong>&#8220; k\u00f6nnen Sie auch ein Ziel-Verzeichnis angeben &#8211; etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>unzip Dateiname.zip \/home\/nutzername\/Dokumente\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit der Option &#8222;<strong><code>-l<\/code><\/strong>&#8220; lassen Sie sich wiederum nur den Inhalt des ZIP-Archives anzeigen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1-1024x576.jpg\" alt=\"\" class=\"wp-image-261\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zip1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">M\u00f6chten Sie aus der Datei &#8222;<strong>Dateiname.txt<\/strong>&#8220; oder dem Verzeichnis &#8222;<strong>Verzeichnis<\/strong>&#8220; ein komprimiertes Archiv erstellen nutzen Sie stattdessen den Befehl &#8222;<strong>zip<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip Dateiname.zip Dateiname.txt\nzip Dateiname.zip Verzeichnis\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sie geben also zu Beginn den Namen des zu erstellenden Archivs an, anschlie\u00dfend folgen die Dateien oder die Verzeichnisse, Sie k\u00f6nnen nat\u00fcrlich auch mehrere Dateien oder Verzeichnisse in ein ZIP-Archiv komprimieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip Dateiname.zip Dateiname.txt Dateiname.jpg Verzeichnis\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Um ein durch ein Passwort gesch\u00fctztes komprimiertes ZIP-Archiv zu erstellen, nutzen Sie zus\u00e4tzlich die Option &#8222;<strong><code>-e<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CODE:&nbsp;<a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=264#\">ALLES AUSW\u00c4HLEN<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip -e Dateiname.zip Verzeichnis\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nach dem Start des Befehls werden Sie aufgefordert, das zu nutzende Passwort anzugeben. Weitere Hilfen zeigen die Manpages der Befehle:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>man zip\nman unzip<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"259\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"259\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>ZIP ist wohl das bekannteste Archiv-Format f\u00fcr komprimierte Archive unter allen Betriebssystemen. Unter Linux erstellen und entpacken Sie solche ganz einfach auf der grafischen Oberfl\u00e4che per Rechtsklick: Auf dem\u00a0Terminal\u00a0gelingt die Aufgabe nicht viel schwieriger, um beispielsweise das komprimierte Archiv &#8222;Dateiname.zip&#8220; zu entpacken nutzen Sie ganz einfach den Befehl &#8222;unzip&#8222;: Ist das ZIP-Archiv mit einem Passwort [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,5,7,6,34],"class_list":["post-259","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-linux","tag-shell","tag-terminal","tag-zip"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions\/263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/261"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}