10 compression, archiving

Source: Internet
Author: User

Compress, unzip command

Compression format: gz,bz2,xz,zip,z

Compression algorithm: Different algorithm, compression ratio will also be different

Gzip:.gz The source file is deleted when the compression is complete

-D: Unzip

-#:1-9 set compression ratio, default is 6

Gunzip: The source file is deleted after decompression

Zcat: Temporarily view the contents of compressed files in the case of decompression

BZIP2:.BZ2 has a greater compression ratio than gzip, using a format approximation

-D:

-#:1-9 Default 6

-K: Preserve source files while compressing

BUNZIP2: Extracting Files

Xz:.xz Greater Compression ratio

-D:

-#:

-K:

UNXZ: Decompression

Zip: Do not delete source files after compression

Zip FILENAME. ZIP FILE1 FILE2 ....

Unzip: Decompression

Archive: Archiving, archiving by itself does not imply compression

Tar: Archive-only uncompressed

-C: Create an archive file

-F File.tar: Archived files for operations

-X: Expand Archive

--xattrs: Preserves extended attribute information for files when archiving

-T: Do not expand the archive to directly see which files are archived

-ZCF: Archive and invoke gzip compression

-ZXF: Call gzip to unzip and expand archive

-jcf:bzip2

-JXF:

-jcf:xz

-JXF:

Cpio: Archive Tool


10 compression, archiving

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.