Re: Problem with Archiving .tar



Mark Nichols wrote:

On 10/30/07, Derek Broughton <news@xxxxxxxxxxxxxx> wrote:

Chris Lemire wrote:

tar doesn't use compression. It just creates archives. If you want
compression, you should use bzip2 or gzip in combination with tar.

Why deliberately try to confuse users? Of course tar uses compression.

$ tar --help | egrep "\-[zj]"
--no-ignore-command-error treat non-zero exit codes of children
as
-i, --ignore-zeros ignore zeroed blocks in archive (means EOF)
-j, --bzip2 filter the archive through bzip2
-z, --gzip, --gunzip, --ungzip filter the archive through gzip

Oh - looks like tar uses compression...


Actually it looks like tar has the ability to filter its output _through_
bzip2 or gzip. Tar in an off itself doesn't do compression.

From the point of view of the user, tar accepts the option and performs the
operation. It's NOT like piping the output of tar into gzip, though you
can do that if you want. So yes, I stand by my statement that tar _does_
use compression, and saying anything else to a user who's having trouble
with tar and compression is needlessly confusing.
--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: gzip question
    ... > compression application. ... Create the directory structure you want, then tar up the directory, then ... gzip the tar file. ...
    (Debian-User)
  • Re: "tar -c|gzip" faster than "tar -cz"?!?
    ... which does the compression in the process. ... output to gzip will let gzip compress data while tar is waiting on ... that gzip also uses libz, ...
    (freebsd-hackers)
  • Re: [opensuse] Backup Question
    ... backup procedure, a missing backup not your primary problem. ... I don't know what is reliable in Linux, but tar isn't. ... They can suffer some amount of media / communication errors without ... Things like compression aren't dangerous because the media is perfect. ...
    (SuSE)
  • Re: Archiving
    ... Two beginner questions about archiving on Unix: ... How reliable are tar and gzip compared to commercial archiving ... Since tar does not do compression, ...
    (comp.unix.questions)
  • Re: Correct syntax for bzip and gnu tar
    ... >I have just installed the depots for gnu tar, gzip, and bzip2. ... I believe that all GNU-tar does is forks a process for the compression ...
    (comp.unix.questions)