Linux split package and decompressed split package

Source: Internet
Author: User

The title of the article starts with a bit of a detour, such as executing a command pipeline. Haha, due to server settings problems, you cannot upload a large compressed package. This compressed package cannot be resumed, and all of it can only be cut, if you use software in windows, you can easily solve the problem. In Linux, you only need two commands:
First, let's look at the first command:
Cat jordan_shoes.tar.gz | split-B 100 m-jordan_shoes.tar.gz.
Explanation:
-Jordan_shoes.tar.gz is an existing compressed package.
-100 MB indicates that each compressed package is 100 MB. If the file is not fully divided into MB, the remaining small compressed package is generated.
-Jordan_shoes.tar.gz.is the value of the generated compressed package. The header is jordan_shoes.tar.gz. The default value is aa, AB ..., And so on.

After uploading, how can I decompress these small packages to restore them? See the next command.

Cat jordan_shoes.tar.gz.a * | tar zxv
Explanation:
Use cat to read all the compressed packages and use tar to decompress them.

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.