Linux – Which is more efficient – tar or zip compression? What is the difference between tar and zip

linuxtarunixzip

I'm working in Linux environment and want to know about tar and zip commands.

Which is more efficient – tar or zip? I also need to know the differences between the tar and zip commands. Can anyone explain them to me?

Best Answer

tar only makes a single file out of multiple files, it doesn't do compression unless combined a compression program such as gzip or bzip2 (which you can call from within tar by using the -z or -j options, respectively). zip combines both the archiving and compression in one program.

Related Question