[98733] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: tar question (probably a newbie question)

daemon@ATHENA.MIT.EDU (Michael Jinks)
Tue Nov 10 13:14:25 1998

Date: Tue, 10 Nov 1998 16:41:19 +0000
From: Michael Jinks <michael@twopoint.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

A few more tricks with tar:

If the file is tar'ed and gzipped (usually ends in the extension .tar.gz
or .tgz) you can use:

tar -xzvf file.tar.gz

The "z" tells tar to call gzip.  Works on the "create" side of tar as
well, and eliminates that extra command line.  Extra convenient when
space is getting tight.

For compressed files (.Z extension usually) use a capital Z:

tar -xZvf file.tar.Z

The "f" option tells tar "use this file," both on archiving and on
retrieval, and must be followed immediately by the name of the archive
file.  Without the -f, tar expects to take its arguments from the stdin,
which is why it's hanging like that.

The "v" tells tar to be verbose, i.e., list the files as you process
them.

The x/c/t switch you've already figured out.


-- 
Michael Jinks
mailto:michael@twopoint.com http://www.twopoint.com
Systems Administrator, Two Point Conversions, Inc.

"A fool is bad news and it rubs off.  Don't let it rub off on you."
				-- W. S. Burroughs


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post