Linux Commands-Compression segmentation

Source: Internet
Author: User
Tags bz2
1. Tar compression

TAR-ZCVF cm-11.tar.gz cm-11
Compress the Cm-11 folder into cm-11.tar.gz

TAR-JCVF cm-11.tar.gz cm-11
Compress the Cm-11 folder into cm-11.tar.bz2

2. Segmentation

The compressed file is too large to divide cm-11.tar.gz into n files of a specified size
Split-b 4000m-d-a 1 cm-11.tar.gz cm-11.tar.gz.

Using the split command, the-B 4000M means setting the size of each split package, or the unit can be K
-D "parameter specifies that the generated split package suffix is in the form of a number
-A x to set the length of the sequence (the default value is 2), where the length of the set sequence is 1

3. Decompression

TAR-ZXVF cm-11.tar.gz
TAR-JXVF cm-11.tar.bz2

4, after the split compression package decompression command is as follows

Cat cm-11.tar.gz.* | Tar-zxv

Linux Commands-Compression segmentation

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.