Skip to content

Instantly share code, notes, and snippets.

@jjhoncv
Forked from jansanchez/gist:8531593
Last active August 29, 2015 14:14
Show Gist options
  • Save jjhoncv/02547b18795224f8edd4 to your computer and use it in GitHub Desktop.
Save jjhoncv/02547b18795224f8edd4 to your computer and use it in GitHub Desktop.

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