Compression and decompression using TAR (original text: http: dash.945.cnArticle.php79)

xiaoxiao2021-03-06  93

Use TAR compression tools 2004-05-04 Click: 613

Use TAR compression tools

First, what is tar

On Linux, in order to facilitate documentation and directory communication, storage, and transfer, we usually put a lot of files and directory "package" as a single file. This packing tool is TAR, and the packaged file is called Tar Ball (XXX.tar). By taking one, the TAR itself does not have a compressed file, and the XXX.TAR.GZ (.tgz) we often see is TAR Ball compresses Gzip, and xxx.tar.z is TAR Ball and compress Compressed, and xxx.tar.bz2 is TAR Ball and compressed by BZip2.

Second, how to pack

TAR [CVFZ] [TAR Ball File] [Tar file or directory]

Create a tar ball

f Specify TAR BALL file name

v verbose, listing

z Use GZIP to compress Tar Ball

TAR ZCVF etc .tar.gz / etc / *

Third, how to solve

TAR [-XVFZ] [TAR Ball file] [Tar file or directory]

x Slease Tar Ball

f Specify TAR BALL file name

v verbose, listing

z Using GZIP to decompress (.gz)

TAR ZXVF etc.tar.gz / home /

转载请注明原文地址:https://www.9cbs.com/read-102549.html

New Post(0)