[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Single Page

Top Document: comp.compression Frequently Asked Questions (part 1/3)
Previous Document: [33] I have a problem with Stacker or DoubleSpace!
Next Document: [51] I need a CRC algorithm


[50] What is this 'tar' compression program?



tar is not a compression program. It just combines several files
into one, without compressing them. tar file are often compressed with
'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
GNU tar has the capability to (de)compress files as well.

When you have to archive a lot of very small files, it is often preferable to
create a single .tar file and compress it, than to compress the individual
files separately as in a zip archive. The compression program can thus take
advantage of redundancy between separate files.  The disadvantage is that you
must uncompress the whole .tar file to extract any member. You can also
improve compression by grouping files by type, as in:

  tar cvf - `ls | sort -t. +1` | gzip > file.tar.gz



Top Document: comp.compression Frequently Asked Questions (part 1/3)
Previous Document: [33] I have a problem with Stacker or DoubleSpace!
Next Document: [51] I need a CRC algorithm

Part1 - Part2 - Part3 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
jloup@gzip.OmitThis.org

Last Update October 22 2009 @ 05:23 AM

Some parts © 2009 Advameg, Inc.