{"id":2548,"date":"2023-11-01T08:00:00","date_gmt":"2023-11-01T08:00:00","guid":{"rendered":"https:\/\/myvlcsys.com\/?p=2548"},"modified":"2023-10-21T09:49:19","modified_gmt":"2023-10-21T09:49:19","slug":"linux-comando-zip-y-unzip","status":"publish","type":"post","link":"https:\/\/myvlcsys.com\/?p=2548","title":{"rendered":"LINUX: Comando zip y unzip."},"content":{"rendered":"\n<p>Utiliza el comando&nbsp;<strong>zip&nbsp;<\/strong>para comprimir tus archivos en un archivo&nbsp;<strong>ZIP<\/strong>, un formato universal de uso com\u00fan en Linux. Puedes elegir autom\u00e1ticamente la mejor proporci\u00f3n de compresi\u00f3n.<\/p>\n\n\n\n<p>El comando&nbsp;<strong>zip&nbsp;<\/strong>tambi\u00e9n es \u00fatil para archivar ficheros y directorios, y reducir el uso del disco.<\/p>\n\n\n\n<p>Para utilizarlo, introduce la siguiente sintaxis:<\/p>\n\n\n\n<p><strong>zip [opciones] archivozip archivo1 archivo2\u2026.<\/strong><\/p>\n\n\n\n<p>Por ejemplo, si tienes un archivo llamado&nbsp;<strong>nota.txt&nbsp;<\/strong>que deseas comprimir en&nbsp;<strong>archivo.zip&nbsp;<\/strong>en el directorio actual:<\/p>\n\n\n\n<p><strong>zip archivo.zip nota.txt<\/strong><\/p>\n\n\n\n<p>Por otro lado, el\u00a0comando unzip\u00a0extrae los ficheros comprimidos de un archivo. Este es el formato general:<\/p>\n\n\n\n<p><strong>unzip [opci\u00f3n] nombre_archivo.zip<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image.png\" alt=\"\" class=\"wp-image-2550\" width=\"745\" height=\"360\" srcset=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image.png 628w, https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image-300x145.png 300w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><figcaption>Comando zip.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>As\u00ed, para descomprimir un archivo llamado&nbsp;<strong>archivo.zip&nbsp;<\/strong>en el directorio actual, introduce:<\/p>\n\n\n\n<p><strong>unzip archivo.zip<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image-1.png\" alt=\"\" class=\"wp-image-2552\" width=\"764\" height=\"156\" srcset=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image-1.png 570w, https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/10\/image-1-300x61.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><figcaption>Comando unzip.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Utiliza el comando&nbsp;zip&nbsp;para comprimir tus archivos en un archivo&nbsp;ZIP, un formato universal de uso com\u00fan en Linux. Puedes elegir autom\u00e1ticamente la mejor proporci\u00f3n de compresi\u00f3n. El comando&nbsp;zip&nbsp;tambi\u00e9n es \u00fatil para&hellip; <\/p>\n","protected":false},"author":4,"featured_media":2066,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[30,10],"tags":[31,25,47,27,24],"class_list":["post-2548","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comandos","category-linux","tag-comandos","tag-linux","tag-myvlcsys","tag-sistemas","tag-terminal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2548"}],"version-history":[{"count":3,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2548\/revisions"}],"predecessor-version":[{"id":2554,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2548\/revisions\/2554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/media\/2066"}],"wp:attachment":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}