Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.compression Frequently Asked Questions (part 1/3)
Section - [50] What is this 'tar' compression program?

( Part1 - Part2 - Part3 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Zip codes ]


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
See reader questions & answers on this topic! - Help others by sharing your knowledge

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

User Contributions:

Report this comment as inappropriate
Oct 24, 2014 @ 2:02 am
Gift Card/purchase/execheng/zip cod/partner/google app

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




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 March 27 2014 @ 02:11 PM