13.07.2015 Views

Práctica 22 - Licenciado en Sistemas Computacionales ...

Práctica 22 - Licenciado en Sistemas Computacionales ...

Práctica 22 - Licenciado en Sistemas Computacionales ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fecha de efectividad: ______15-11-2009_______UNIVERSIDAD AUTÓNOMA DE BAJA CALIFORNIAFACULTAD DE INGENIERÍA (UNIDAD MEXICALI)DOCUMENTO DEL SISTEMA DE CALIDADFormatos para prácticas de laboratorio-rw-r--r-- 1 aguilar maestros 135213 May 13 17:21 mapa1.jpg-rw-r--r-- 1 aguilar maestros 135213 Jan 10 11:30 mapa.jpgComo se puede apreciar <strong>en</strong> el ejemplo anterior el archivo original foto1.tif fue sustituido por elarchivo foto1.tif.gz que resulta de la compresión con el mando gzip.Para prev<strong>en</strong>ir que no nos pase eso y t<strong>en</strong>gamos los dos archivos, la fu<strong>en</strong>te original y el archivo.gz utilizaremos el parámetro -c y el re direccionami<strong>en</strong>to de salida >.[aguilar@tiburon practica<strong>22</strong>]$ ls -ltotal 488-rw-r--r-- 1 aguilar maestros 99920 May 16 09:14 foto1.tif-rw-r--r-- 1 aguilar maestros 99920 May 13 17:21 foto.tif-rw-r--r-- 1 aguilar maestros 135213 May 13 17:21 mapa1.jpg-rw-r--r-- 1 aguilar maestros 135213 Jan 10 11:30 mapa.jpg[aguilar@tiburon practica<strong>22</strong>]$ gzip -c foto1.tif > foto1.tif.gz[aguilar@tiburon practica<strong>22</strong>]$ ls -ltotal 504-rw-r--r-- 1 aguilar maestros 99920 May 16 09:14 foto1.tif-rw-r--r-- 1 aguilar maestros 13796 May 16 09:39 foto1.tif.gz-rw-r--r-- 1 aguilar maestros 99920 May 13 17:21 foto.tif-rw-r--r-- 1 aguilar maestros 135213 May 13 17:21 mapa1.jpg-rw-r--r-- 1 aguilar maestros 135213 Jan 10 11:30 mapa.jpgEmpaquetando y comprimi<strong>en</strong>do directorios con gzip.Para poder comprimir o empaquetar un directorio se debe de utilizar el parámetro -r con elmando gzip, este parámetro hace que el mando gzip desci<strong>en</strong>da <strong>en</strong> la estructura desubdirectorios y comprima todos los archivos que existan <strong>en</strong> el.[aguilar@tiburon ~]$ ls -l practica<strong>22</strong>total 488-rw-r--r-- 1 aguilar maestros 99920 May 16 09:14 foto1.tif-rw-r--r-- 1 aguilar maestros 99920 May 13 17:21 foto.tif-rw-r--r-- 1 aguilar maestros 135213 May 13 17:21 mapa1.jpg-rw-r--r-- 1 aguilar maestros 135213 Jan 10 11:30 mapa.jpg[aguilar@tiburon ~]$ gzip -r practica<strong>22</strong>/[aguilar@tiburon ~]$ ls -l practica<strong>22</strong>total 280Página 6 de 11Código GC-N4-017Revisión 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!