Linux Learning notes (19)

Source: Internet
Author: User

First, compression packaging introduction

Compressed files can save space, network transmission time is short, network bandwidth consumption of resources to become smaller

Windows common Compressed files: rar zip 7z

Linux common compressed Files zip. gz. bz2. xz. Tar (suffix name is just a convention)

The more compressed the more ruthless, the more CPU resources consumed


Two, Gzip decompression tool (can not compress the directory)

gzip + filename Zip file (the original file disappears)

-D + zip file name Extract files

-Number (1-9) specify compression level default 6 level, smaller 0 less rigorous compression

-C Keep source files and extract to specified directory

> Extract to the specified directory

Gunzip + Compress file name Extract files

Zcat + Compressed File View Compressed file contents


Third, bzip2 (more than gzip compression, not supported compression directory)

Yum Install bizp2-y installation BIPZ2 tool

bzip2 + file name compression files

-D + zip file decompression file

BUNZIP2 + filename Extract File

-C Keep the original file and extract to the specified directory

-Number (1-9) default compression level is 9

File + Compressed file to view details of files (in case someone does not add a suffix by convention)


Four, XZ compression tool (more than bzip2 compression more ruthless)

XZ + filename zip file

-Number (1-9) compression level, default is 6

-D Extract Files

UNXZ + filename Extract File

-C Keep the original file and compress to the specified directory

Xzcat + Compressed File View Compressed file contents


Linux Learning notes (19)

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.