sábado, diciembre 26, 2009

Comprimir y descomprimir

En Linux hay diversas herramientas para empaquetar y comprimir archivos, tomando en cuenta que empaquetar es juntar dos o más archivos en un solo archivo (paquete) y comprimir es tomar este archivo-paquete y comprimirlo a continuación te muestro un resumen de las más comunes, de acuerdo a la extensión que comunmente se acostumbra ponerles.
.tar (tar)
Empaquetar tar cvf archivo.tar /archivo/mayo/*
Desempaquetar tar xvf archivo.tar
Ver el contenido (sin extraer) tar tvf archivo.tar
.tar.gz - .tar.z - .tgz (tar con gzip)
Empaquetar y comprimir tar czvf archivo.tar.gz /archivo/mayo/*
Desempaquetar y descomprimir tar xzvf archivo.tar.gz
Ver el contenido (sin extraer) tar tzvf archivo.tar.gz
.gz (gzip)
Comprimir gzip -q archivo (El archivo lo comprime y lo renombra como "archivo.gz")
Descomprimir gzip -d archivo.gz (El archivo lo descomprime y lo deja como "archivo"
Nota: gzip solo comprime archivos, no directorios
.bz2 (bzip2)
Comprimir bzip2 archivo
bunzip2 archivo (El archivo lo comprime y lo renombra como "archivo.bz2")
Descomprimir bzip2 -d archivo.bz2
unzip2 archivo.bz2 (El archivo lo descomprime y lo deja como "archivo")
Nota: bzip2 solo comprime archivos, no directorios
.tar.bz2 (tar con bzip2)
Comprimir tar -c archivos | bzip2 > archivo.tar.bz2
Descomprimir bzip2 -dc archivo.tar.bz2 | tar -xv
tar jvxf archivo.tar.bz2 (versiones recientes de tar)
Ver contenido bzip2 -dc archivo.tar.bz2 | tar -tv
.zip (zip)
Comprimir zip archivo.zip /mayo/archivos
Descomprimir unzip archivo.zip
Ver contenido unzip -v archivo.zip
.lha (lha)
Comprimir lha archivo.lha /mayo/archivos
Descomprimir lha -x archivo.lha
Ver contenido lha -v archivo.lha o también lha -l archivo.lha
.zoo (zoo)
Comprimir zoo -a archivo.zoo /mayo/archivos
Descomprimir zoo -x archivo.zoo
Ver contenido zoo -v archivo.zoo o también zoo -L archivo.zoo
.rar (rar)
Comprimir rar -a archivo.rar /mayo/archivos
Descomprimir rar -x archivo.rar
Ver contenido rar -v archivo.rar o también rar -l archivo.rar

Sacado de linuxsix.blogspot

9 comentarios:

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]kensington canada goose parka[/url] Every person has a different chemistry, which is why, most perfumes smell differently when applied to different people. [url=http://www.busesbitermi.com]beats by dre[/url] Yblscc
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin[/url] [url=http://www.ogrelarp.com]Canada Goose Parka[/url] Ohhmlt [url=http://www.pandorajewelryukonsale.co.uk]pandora outlet[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose store online [/url] Only true Romans could wear a toga, a foreigner could not wear a toga in public. [url=http://www.busesbitermi.com]cheap beats by dre[/url] Liwxmn
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin shoes[/url] [url=http://www.ogrelarp.com]Canada Goose Jacken outlet[/url] Igontl [url=http://www.pandorajewelryukonsale.co.uk]pandora outlet[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose bomber[/url] Some ladies think gold frames go with everything, and that might be true for them. [url=http://www.busesbitermi.com]dr dre beats heartbeats cheap[/url] Lvjoev
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin shoe sale[/url] [url=http://www.ogrelarp.com]Canada Goose Shop[/url] Ivojyr [url=http://www.pandorajewelryukonsale.co.uk]pandora uk[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose[/url] They are used in the manufacturing of products like baby diapers, surgery gowns, filtration system, refineries, soil stabilizers, bandages, isolation cloth, surgery masks, wet wipes, etc. [url=http://www.busesbitermi.com]cheap beats by dre[/url] Hwbcco
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin[/url] [url=http://www.ogrelarp.com]Canada Goose[/url] Yvrgcp [url=http://www.pandorajewelryukonsale.co.uk]pandora charm[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose outlet online[/url] Jewelry is typically not worn for dance classes since it can get in the way, catch on hair or clothing, and could possibly lead to injury. [url=http://www.busesbitermi.com]dr dre beats heartbeats cheap[/url] Xapoqw
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin uk[/url] [url=http://www.ogrelarp.com]Canada Goose Jacken[/url] Srimgj [url=http://www.pandorajewelryukonsale.co.uk]pandora jewellery[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose bomber[/url] It is the right of every woman to do whatever she wants to look striking, on every special occasion when all your friends and family members have gathered. [url=http://www.busesbitermi.com]cheap beats by dre[/url] Sbuhth
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin outlet online[/url] [url=http://www.ogrelarp.com]http://www.ogrelarp.com[/url] Hcilrp [url=http://www.pandorajewelryukonsale.co.uk]pandora outlet[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose kensington parka[/url] is not up to par.. [url=http://www.busesbitermi.com]cheap beats by dre[/url] Xcpbkf
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin shoe sale[/url] [url=http://www.ogrelarp.com]Canada Goose Parka[/url] Wutgew [url=http://www.pandorajewelryukonsale.co.uk]pandora charm[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose bomber[/url] These leather phone covers provide unique style to the person carrying their smart phones inside it.. [url=http://www.busesbitermi.com]beats by dre[/url] Vexhjr
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin shoe sale[/url] [url=http://www.ogrelarp.com]http://www.ogrelarp.com[/url] Vdchkx [url=http://www.pandorajewelryukonsale.co.uk]cheap pandora[/url]

Anónimo dijo...

[url=http://www.cheapcanadagooseparkas.ca]canada goose store online [/url] I would certainly argue that attraction to physical features (of any sex--let not be heteronormative) is more influenced by external forces. [url=http://www.busesbitermi.com]dr dre beats cheap[/url] Jvntji
http://www.christianlouboutindiscountsale.co.uk [url=http://www.ogrelarp.com]Canada Goose Jacken outlet[/url] Gdlfte http://www.pandorajewelryukonsale.co.uk