linux nineteen compression decompression

In the windows commonly used compression tools there are many such as:

"Photos from the network."

In linux, there are many compression tools

Today will introduce linux compression and decompression

gzip: gzip

gzip command What? ?

# Gzip file // create compressed files will be compressed into a compressed .gz file compression of success, before the original file will be deleted

gzip -d file.gz decompression file.gz

gunzip file.gz 解压file.gz

gzip - # (1 ~ 9) 1-9 compression ratio provided, the default is 6,

zcat file.gz View archive content

bzip2

bzip2: compressed zip file more advanced than

bzip2 use:

bzip2 file creates a compressed

bzip2 -d file.bz2 decompression

bunzip2 file.bz2 decompression

bzcat file.gz2 view the contents of compressed files file.bz2

xz: the latest compressed file

xz usage:

xz xz file creation file

xz -d file.xz decompression

unxz file.xz decompression

xz -k file to retain the original file

xz - [1-9] to adjust the compression ratio

xzcat view the contents of compressed files xz

zip file: and archiving and compression tool

zip file1 file2 file3 ... create a compressed

Unzip unzip file.zip

zip -k retain the original file

archive archive, the archive does not mean that compression

tar archive:

tar command

tar -c to create an archive

tar -f archive operations

Expand the archive tar -x

tar --xttars when archiving, retention, expansion attribute information file

tar-zcf: gzip to compress and archive file called

tar-zxf: Expand the archive file and unzip the gzip, z can be ignored

tar-jcf: to bizp2 compressed file called and archived
tar-jxf: Expand the archive and decompress bzip2 files, j can be ignored

 

Guess you like

Origin www.cnblogs.com/X404/p/12374612.html