Compression packing related commands

the gzip:
bzip2:
the tar: packing compression
     -c archive
     -x archive
     -z gzip archive
     -j bzip2 archive
     -v display compression or decompression process V (View)
     -f using filename
Example:
the tar -cvf / Home /abc.tar / home / abc packing only, not compressed
tar -zcvf /home/abc.tar.gz / home / abc packaged and compressed with gzip
tar -jcvf /home/abc.tar.bz2 / home / abc packaged, and compressed with bzip2

Of course, if you want to decompress, directly replace the above command tar -cvf / tar -zcvf / tar -jcvf the "c" into "x" on it.

Guess you like

Origin www.cnblogs.com/qingzhenduyi/p/12048663.html