Re: [expert] tar.gz???

2001-10-03 Thread Alexander Skwar

So sprach »[EMAIL PROTECTED]« am 2001-10-03 um 12:40:40 -0400 :
> $ tar -cvzf foo.tar.gz foo
> OR
> $ tar -cvjf foo.tar.bz2 foo
OR
$ tar cfvZ foo.tar.Z foo

This will create a "compress"ed tar file.  Best compression is achieved
with bzip2 - worst with compress.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 13 hours 12 minutes



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



Re: [expert] tar.gz???

2001-10-03 Thread ddcharles

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



Re: [expert] tar.gz???

2001-10-03 Thread Alexander Skwar

So sprach »Michael D. Viron« am 2001-10-03 um 10:12:00 -0500 :
> >d1) tar cfvj foo.tar.bz2 foo/
> >d1a) Note: j is a "new" option.  Old tar's used y as the bzip2 switch
> 
> Actually, the tar in Mandrake 7.2, uses I for bzip2.

Oh, yes, that's right.  Forgot about this one.  Thanks for pointing this
out!

In conclusion - if it's unknown what version of tar is available, I'd
say the best option is to use --use=bzip2 if .bz2'd tar files are to be
created/extracted from.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 5 hours 31 minutes



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



Re: [expert] tar.gz???

2001-10-03 Thread Michael D. Viron

>d1) tar cfvj foo.tar.bz2 foo/
>d1a) Note: j is a "new" option.  Old tar's used y as the bzip2 switch

Actually, the tar in Mandrake 7.2, uses I for bzip2.

Michael

--
Michael Viron
Registered Linux User #81978
Senior Systems & Administration Consultant
Web Spinners, University of West Florida



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



Re: [expert] tar.gz???

2001-10-03 Thread Alexander Skwar

So sprach »Franki« am 2001-10-03 um 18:34:53 +0800 :
> I knew there were heaps of ways to do it, I just didn't know what was
> best...

You didn't ask about the best.  You asked about gzip, not bzip2 which
are not compatible.

> 
> Mr Steve suggested this:

Who?

> 
> I'd use tar -cwf foo.tar/ | bzip2 -9

No need to break your fingers when writing the above...  And IMO it's
better to have tar handle the bzip2 by itself

Well, do:
a) Read the man page
b) Read the info page
c) Read the output of tar --help
d) One of the following:
d1) tar cfvj foo.tar.bz2 foo/
d1a) Note: j is a "new" option.  Old tar's used y as the bzip2 switch
d2) tar cfv foo.tar.bz2 --bzip2 foo/
d2a) Note: --bzip2 is a "new" option.  Old tar's didn't know how to
handle bzip2
d3) tar cfv foo.tar.bz2 --use=bzip2 foo/
d3a) That's the most compliant way of having tar call bzip2.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 1 hour 6 minutes



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



RE: [expert] tar.gz???

2001-10-03 Thread Franki

I knew there were heaps of ways to do it, I just didn't know what was
best...

Mr Steve suggested this:

I'd use tar -cwf foo.tar/ | bzip2 -9

for the best compression, so this is my new friend...


rgds

Frank

-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 3 October 2001 5:50 PM
To: Franki
Cc: [EMAIL PROTECTED]
Subject: Re: [expert] tar.gz???


So sprach »Franki« am 2001-10-03 um 17:45:47 +0800 :
> so I would do what???

You'd do:
a) read the man page
b) read the info page
c) read the output of tar --help
d) do one of the following:
d1) tar cfvz foo.tar.gz foo/
d2) tar cfv foo.tar.gz --gzip foo/
d3) tar cfv foo.tar.gz --use=gzip foo/

Alexander Skwar
--
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 10 days 0 hours 5 minutes




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



Re: [expert] tar.gz???

2001-10-03 Thread Alexander Skwar

So sprach »Franki« am 2001-10-03 um 17:45:47 +0800 :
> so I would do what???

You'd do:
a) read the man page
b) read the info page
c) read the output of tar --help
d) do one of the following:
d1) tar cfvz foo.tar.gz foo/
d2) tar cfv foo.tar.gz --gzip foo/
d3) tar cfv foo.tar.gz --use=gzip foo/

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 10 days 0 hours 5 minutes



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



[expert] tar.gz???

2001-10-03 Thread Franki



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