Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Feb 1999 11:34:44 +1000
From:      Greg Black <gjb@comkey.com.au>
To:        cjclark@home.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: Tar Files 
Message-ID:  <19990202013444.29410.qmail@alpha.comkey.com.au>
In-Reply-To: <199902012032.PAA00478@cc942873-a.ewndsr1.nj.home.com>  of Mon, 01 Feb 1999 15:32:49 EST
References:  <199902012032.PAA00478@cc942873-a.ewndsr1.nj.home.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 2) tar does not do compression. If you want to do compression try,

Wrong.

> % tar cvf filename.tar *
> % gzip filename.tar
> 
> Or, to be more guruish,
> 
> % tar cvf - * | gzip -c > filename.tar.gz

Even better, RTFM.  FreeBSD's tar (which is really GNU tar) does
compression with either compress (the -Z option) or gzip (the -z
option).

-- 
Greg Black <gjb@acm.org>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990202013444.29410.qmail>