In UNIX, tar is the most useful tool to compress files (just like zip in Windows.)
To compress, input:
tar -cvzf file.tar.gz inputfile1 inputfile2
to uncompress, input:
tar -xvzf file.tar.gz
how to use tar?
原文:http://www.cnblogs.com/miaoz/p/3995229.html