首页 > 代码库 > how to use tar?

how to use tar?

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?