Skip to content

Instantly share code, notes, and snippets.

@aduartem
Last active February 20, 2016 02:16
Show Gist options
  • Save aduartem/e8958c94a13ee1530750 to your computer and use it in GitHub Desktop.
Save aduartem/e8958c94a13ee1530750 to your computer and use it in GitHub Desktop.
Archivos tar

#Archivos tar

-x => Desempaquetar/Extraer

-v => Visualizar lo que se realiza

-c => Empaquetar/Crear

-z => Comprimiendo con gzip

Ejemplo empaquetar:

tar -cvf salida.tar dir/arch1 dir/arch2 dir/archN

Ejemplo desempaquetar:

tar -xvf paquete.tar

Ejemplo comprimir con gzip (.tar.gz)

tar -czvf salida.tar.gz carpeta/a/comprimir

Ejemplo descomprimir .tar.gz

tar -xzvf archivo.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment