Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 1998 14:15:04 +1200 (NZST)
From:      Andrew McNaughton <andrew@squiz.co.nz>
To:        Edwin Culp <eculp@webwizard.org.mx>
Cc:        Jack Wenger <jwenger@acw-web.com>, freebsd-isp@FreeBSD.ORG
Subject:   Re: Compressing Tar
Message-ID:  <Pine.BSF.3.96.980812141116.16956F-100000@aniwa.sky>
In-Reply-To: <35D0E692.1DCED11E@webwizard.org.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Aug 1998, Edwin Culp wrote:
> Jack Wenger wrote:
> > Simple question, how can I compress a tarball as it's made, using
> > compress?
> > Something like: tar -cvf fred.tar * | compress * fred.tar.z, or something
> > like that?

> how about
> # tar -czvf fred.tar.gz *

Yuck.

It's a good idea to have tarballs contain one directory which contains
everything else.  Otherwise people unpack things and find their current
directory littered with files mixed in with whatever is already there.

So, if you want to make a tarball of everything in the current directory
called fred then do this:

cd ..
tar -zcvf fred.tar.gz fred


Andrew




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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980812141116.16956F-100000>