If I'm not mistaken, gzip only compresses 1 file. In other words,
if you have a group of files, gzip will only zip one of the files. TAR's
functionality is very different from GZIP, where gzip is a compression
product, TAR's function is to combine many files (and in different
trees) into one file.
So your question is really moot, as tar and gzip are really
different things entirely. If you have many files to zip, you should use
TAR to combine them into one file, and then use gzip to zip the resulting
: For best compression on previously uncompressed files,
: which is better: tar * | gzip, or gzip * | tar?
: IE, is it best to tar compressed files, or compress
: a tar file of uncompressed files? Does gzip -r * work
: better than either solution?
: I'm looking for the most robust method to archive groups
: of files.
: Mayo Medical and Graduate Schools
: 200 1st St. SW, Rochester, MN 55905
"I want to die peacefully in my sleep like my
grandfather, not screaming in terror like his