TUCoPS :: Unix :: General :: extract.txt

How to TAR & GZIP TUT:

     _|_|_|  _|        _|     _| _|     _|  _|     _|    _|_|_|   _|      _|_|_|
     _|      _|      _|  _|  _| _| _|  _| _| _|  _|  _|  _|   _|  _|      _|
     _|_|    _|      _|_|_|  _|    _|  _|    _|  _|_|_|  _|_|_|   _|      _|_|
     _|      _|      _|  _|  _|    _|  _|    _|  _|  _|  _|   _|  _|      _|
     _|      _|_|_|  _|  _|  _|    _|  _|    _|  _|  _|  _|_|_|   _|_|_|  _|_|_|


                  _|_|_|   _|  _|  _|_|_|  _|_|_|  _|_|_|  _|_|_|
                  _|   _|  _|  _|  _|      _|      _|      _|
                  _|_|_|   _|_|_|  _|_|    _|      _|_|    _|_|_|
                  _|       _|  _|  _|      _|      _|          _|
                  _|       _|  _|  _|_|_|  _|_|_|  _|_|_|  _|_|_|


			   http://www.pheces.org
       	                  "Can ya taste the waste?"


öööööööööööööööööööööööööööööööö

Title:      |||| HOW TO: TAR & GUNZIP ||||

Date:       February 18, 1998 - Updated:  June 21, 1999
Author:     rootwurm & wri0t

öööööööööööööööööööööööööööööööö

clarification on the text below:

this is one of our oldest texts, so instead of changing it completely, we've decided to leave
it the same for historical purposes.  fact is, we are always learning, and aren't afraid to
admit it.  but, sometimes texts we wrote awhile ago slip our minds, and it takes a little
reminder to keep things updated (thanks Noone)

the text below says that tar is a compression method...well, at the time we wrote the text we
assumed it was.  it's not, it just takes many files and puts them into one, maintaining their
directory structure and everything.

the way below was how we used to untar-gzip things.  but a while ago we found a better method,
and it never crossed our minds to update this old ass text phile.

the easiest way to tar-unzip something is to just:

tar -xzvf pheces.tar.gz

here's what the parameters mean (not the actual means, but here just to give you a general idea,
if you want the 'Real' descriptions, "man tar"):

x = extract the file
z = gunzip the file
v = verbose mode (so you can see what it's doing, otherwise it just does it all)
f = filename (specify the filename to untar, in the example above, it was pheces.tar.gz)

and now for the old text!








Gzip and tar are both great compression methods. They are not hard to use either. This is the 
basic method of gunzip'ing and untar'ing, but we're sure there are more ways to do it. Gzip and 
tar are usually used together to get maxium compression, but sometimes they are used separately.

if a filename has a '.tar.gz' extension, then it is both tarred and gzipped.  here's how you
go about getting this stuff uncompressed.  pay attention, there will be a thirty question quiz on
friday, and for each one you miss, you get a pube plucked out.

(pheces.tar.gz is just an example, use the real filename, duh :-)

gunzip pheces.tar.gz

after gunzipping, there will be 'pheces.tar' left behind

tar -xf pheces.tar

the 'x' means to extract, and the 'f' means the filename is proceeding it.  so -xf means 'extract
this file'.  i'm sure there's other ways to 'untar' a file, but this is the way i use because it
leaves 'pheces.tar' behind, after the file is extracted.



later

wri0t (wri0t@pheces.org)
rootwurm (rootwurm@pheces.org)

(((((((((((((((((((((((((((((((((((((((((((((#yep)))))))))))))))))))))))))))))))))))))))))))))

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH