Kindly provide command line in UNIX to zip & uzip a file gzip & uncompress gzip a file tar & untar a file kindly specify which is more suitable in best mode of compression .
migrated from stackoverflow.com Nov 17 '10 at 0:01
This question came from our site for professional and enthusiast programmers.
Please note that tar is used to put multiple files (with a directory structure) into one file. It does not compress at all. The usual compression in UNIX is gzip or one of its successors. Zip is seldom used. They are probably similar in compression ratio.
As a reference, here the most common commands:
To use bzip2 instead of gzip use