Hi,

the tar program has a filter built into it that lets it zip using either
gzip/bzip2  (and I think zip also, but can't remember) at the same time
that it is creating the archive; to do so, type the following:

$ tar -cvzf foo.tar.gz foo
OR
$ tar -cvjf foo.tar.bz2 foo

the first line, using the "z" switch, will compress using gzip;  the
second line, using the "j" switch, will compress using bzip2.

HTH,
David Charles

On Wed, 3 Oct 2001, Franki wrote:

>
>
> Hi all,
>
> this is going to sound like a dumb question, but believe it or not, I have
> never done this before..
>
> I want to create .tar.gz files...
>
> to create a tar, I use tar -cvvf foo.tar foo/  to tar the foo directory
> (taken long ago from the readme)
>
> if I want to make that a tar.gz file, I assume I have another step?? tar
> alone doesn't seem to compress alot...
>
> so I would do what???
>
> tar -cvvf foo.tar foo/ && gunzip?????
>
> Ta,
>
>
> rgds
>
> Frank
>
>
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to