{"id":31832,"date":"2014-08-04T10:01:25","date_gmt":"2014-08-04T15:01:25","guid":{"rendered":"http:\/\/webirix.com\/?p=31832"},"modified":"2014-08-04T10:01:25","modified_gmt":"2014-08-04T15:01:25","slug":"comprimir-y-descomprimir-en-linux-zip-rar-gz-bz2-bzip2-lha-arj-zoo","status":"publish","type":"post","link":"https:\/\/webirix.com\/en\/comprimir-y-descomprimir-en-linux-zip-rar-gz-bz2-bzip2-lha-arj-zoo\/","title":{"rendered":"Zip and unzip on Linux .Zip, .Rar, .Gz, .bz2, .Bzip2, .Lha, .Arj, .Zoo"},"content":{"rendered":"<h2 style=\"color: #1c1c1c;\"><a href=\"http:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31833\" src=\"http:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux.jpg\" alt=\"linux\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux.jpg 1920w, https:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux-300x168.jpg 300w, https:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/h2>\n<h2 style=\"color: #1c1c1c;\">.Tar files<\/h2>\n<p><span class=\"comando\" style=\"color: #000000;\">tar<\/span><span style=\"color: #000000;\">\u00a0packs multiple files into one, but does not compress.<\/span><\/p>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n tar<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Package:\u00a0<span class=\"comando\"># tar cf archive.tar files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Unpack:\u00a0<span class=\"comando\"># tar -xvf file.tar<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># tar -tf file.tar<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Gz files<\/h2>\n<p><span class=\"comando\" style=\"color: #000000;\">gzip<\/span><span style=\"color: #000000;\">\u00a0it only compresses file by file, does not pack several files into one or compress directories.<\/span><\/p>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n gzip<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># gzip file<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># gzip -d file.gz<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Bz2 files<\/h2>\n<p><span class=\"comando\" style=\"color: #000000;\">bzip2<\/span><span style=\"color: #000000;\">\u00a0it only compresses file by file, does not pack several files into one or compress directories.<\/span><\/p>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n bzip2<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># bzip2 file<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># bzip2 -d file.bz2<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">To compress several files and archive them into one, in the style of compressors\u00a0<\/span><span class=\"comando\" style=\"color: #000000;\">zip<\/span><span style=\"color: #000000;\">\u00a0or\u00a0<\/span><span class=\"comando\" style=\"color: #000000;\">rar<\/span><span style=\"color: #000000;\">\u00a0you have to combine\u00a0<\/span><span class=\"comando\" style=\"color: #000000;\">tar<\/span><span style=\"color: #000000;\">with\u00a0<\/span><span class=\"comando\" style=\"color: #000000;\">gzip<\/span><span style=\"color: #000000;\">\u00a0or with\u00a0<\/span><span class=\"comando\" style=\"color: #000000;\">bzip2<\/span><span style=\"color: #000000;\">\u00a0as I show below.<\/span><\/p>\n<h2 style=\"color: #1c1c1c;\">.Tar.gz files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># tar -czf archive.tar.gz files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># tar -xvzf file.tar.gz<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># tar -tzf file.tar.gz<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Tar.bz2 files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># tar -c files | bzip2&gt; file.tar.bz2<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># bzip2 -dc file.tar.bz2 | tar -xv<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># bzip2 -dc file.tar.bz2 | tar -t<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Zip files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install tools:\u00a0<span class=\"comando\"># emerge -n zip unzip<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># zip archive.zip files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># unzip file.zip<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># unzip -v file.zip<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Rar files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n rar<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># rar to archive.rar files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># rar x file.rar<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># rar l file.rar<\/span>\u00a0or\u00a0<span class=\"comando\"># rar v file.rar<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Lha files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n lha<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># lha to file.lha files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># lha x file.lha<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># lha v file.lha<\/span>\u00a0or\u00a0<span class=\"comando\"># lha l file.lha<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Arj files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install tools:\u00a0<span class=\"comando\"># emerge -n arj unarj<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># arj to archive.arj files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># unarj file.arj<\/span>\u00a0or\u00a0<span class=\"comando\"># arj x file.arj<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># arj v file.arj<\/span>\u00a0or\u00a0<span class=\"comando\"># arj l file.arj<\/span><\/p>\n<\/li>\n<\/ul>\n<h2 style=\"color: #1c1c1c;\">.Zoo files<\/h2>\n<ul style=\"color: #000000;\">\n<li>\n<p style=\"color: #333333;\">Install the tool:\u00a0<span class=\"comando\"># emerge -n zoo<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Compress:\u00a0<span class=\"comando\"># zoo to archive.zoo files<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">Decompress:\u00a0<span class=\"comando\"># zoo x file.zoo<\/span><\/p>\n<\/li>\n<li>\n<p style=\"color: #333333;\">See content:\u00a0<span class=\"comando\"># zoo L file.zoo<\/span>\u00a0or\u00a0<span class=\"comando\"># zoo v file.zoo<\/span><\/p>\n<\/li>\n<\/ul>\n<p>Fountain:<\/p>\n<p>http:\/\/unidadlocal.com\/<\/p>","protected":false},"excerpt":{"rendered":"<p>Files .tar tar packs several files into one, but does not compress. Install the tool: # emerge -n tar Pack: # tar cf archive.tar files Unpack: # tar -xvf archive.tar See content: # tar -tf archive.tar Files .gz gzip only compresses file by file, does not pack several files in one nor does it compress directories. Install the tool: # emerge -n gzip Compress: # gzip\u2026<\/p>","protected":false},"author":20,"featured_media":31834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2024],"tags":[],"class_list":["post-31832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"jetpack_featured_media_url":"https:\/\/webirix.com\/wp-content\/uploads\/2014\/08\/linux1.jpg","_links":{"self":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/31832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/comments?post=31832"}],"version-history":[{"count":1,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/31832\/revisions"}],"predecessor-version":[{"id":31835,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/31832\/revisions\/31835"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media\/31834"}],"wp:attachment":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media?parent=31832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/categories?post=31832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/tags?post=31832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}