Learn Linux compression decompression daily

Source: Internet
Author: User

Gzip

gzip filename #压缩filename, *.gz suffix

-D filename.gz #解压缩filename. Gz

-(1-9) compression ratio, 1 fastest compression bottom, 9 slowest compression rate high

Contents of Zcat filename.gz #查看filename. gz

Bzip2

bzip2 filename #压缩filename, *.bz2 suffix name

-D #加压缩

Bunzip is the same as bzip2-d.

Bzcat filename.bz2 #不用解压直接读出filename的内容

-(1-9) compression ratio, 1 fastest compression bottom, 9 slowest compression rate high

Zip

zip filename.zip filename# Compressed, does not delete the source files, *. Zipzip-r dir #-r compression directorymultiple files and directories can be compressed at the same timeunzip filename. Zip #解压缩 -D dir filename. zip# extract to the specified directory XZxz filename #压缩, *.xz suffix name- D #解压xzcat filename. xz# Viewing Compressed Files

Learn Linux compression decompression daily

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.