Operating System - Linux
1829108 Members
13389 Online
109986 Solutions
New Discussion

Re: Real difference between tar and gzip

 
SOLVED
Go to solution
bullz
Super Advisor

Real difference between tar and gzip

It may be bit silly question for you all. Apologies for that.

But like to know that exact operation of these two. (tar & gzip)

Which is more effective in compression.
2 REPLIES 2
Ivan Ferreira
Honored Contributor
Solution

Re: Real difference between tar and gzip

The tar command is not used to compress files. Tar just packages the files. It's used to create one big file from multiple small files. After tar, you must gzip the file to reduce the size.

If you use tar with the "z" option, it will use gzip to compress the data.

A better question could be the difference between bzip2 and gzip, or tar and cpio.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
bullz
Super Advisor

Re: Real difference between tar and gzip

Super.