How to use zip and tar with files to create compressed archives.
Create compressed files.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 05:16 PM
ZIPPING FILES IN A FOLDER zip stuff .* * this will make stuff.zip out of all the files in the current directory ZIPPING A FOLDER: zip -r foldername newzipname ex zip -r pic pic (you dont need to put a .zip on the second one, it will do it for you) GZIP *replaces file scene.bgeo with scene.bgeo.gz gzip scene.bgeo *brings the file back to bgeo gunzip scene.bgeo.gz TAR *to untar sometar.tar tar xvf sometar.tar *to untar sometar.tar.gz tar xvfz sometar.tar.gz tar -zxvf sometar.tar.gz *to see a list of contents, use t option tar -tzf sometar.tar *to tar up stuff tar czf sometar.tar.gz *.jpg -f is for filename, so it goes last when making -z is gzipping or ungunzipping -x is extract -c is for create -v is verbose, unessessary COPY WITH TAR tar -cf - blah/ | ( cd /path; tar -xf - )
Downloads:
Download: zip.txt 795 B
Please login or Click Here to register for downloads
zip and tar by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
