Skip to content

Instantly share code, notes, and snippets.

@jcaromiq
Last active July 13, 2023 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcaromiq/87319ea132135700a23305c82ee38899 to your computer and use it in GitHub Desktop.
Save jcaromiq/87319ea132135700a23305c82ee38899 to your computer and use it in GitHub Desktop.
Comprimir y descomprimir .gz, .tar.gz, y .zip por linea de comandos en Linux
Archivos .tar.gz:
Comprimir: tar -czvf empaquetado.tar.gz /carpeta/a/empaquetar/
Descomprimir: tar -xzvf archivo.tar.gz
Archivos .tar:
Empaquetar: tar -cvf paquete.tar /dir/a/comprimir/
Desempaquetar: tar -xvf paquete.tar
Archivos .gz:
Comprimir: gzip -9 index.php
Descomprimir: gzip -d index.php.gz
Archivos .zip:
Comprimir: zip archivo.zip carpeta
Descomprimir: unzip archivo.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment