Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active January 3, 2016 22:59
Show Gist options
  • Save jansanchez/8531593 to your computer and use it in GitHub Desktop.
Save jansanchez/8531593 to your computer and use it in GitHub Desktop.
generar archivo comprimido .tar.gz incluyendo sus rutas de acceso

Comprimir archivos incluyendo sus rutas de acceso

Compress

tar -zcvf nombreDelArchivo.tar.gz public/js/modules/all.js frontend/js/application/yoson.js

UnCompress

tar -zxvf nombreDelArchivo.tar.gz

Where

-z : Work on gzip compression automatically when reading archives.

-x : Extract archives.

-v : Produce verbose output i.e. display progress and extracted file list on screen.

-f : Read the archive from the archive to the specified file. In this example, read nombreDelArchivo.tar.gz archive.

-t : List the files in the archive.

Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment