"Linux" sub-volume compression and decompression of compressed files __linux
Source: Internet
Author: User
This article from the Chinaunix blog, if you view the original please point: http://blog.chinaunix.net/u/22418/showart_2041956.html
I. Using RAR
1. Sub-volume compression
Ubuntu does not have the default installation RAR, can be sudo apt-get install RAR, sudo apt-get install unrar to install RAR.
After installation, use the following command for volume compression:
RAR a-vsize Compressed file name or folder
For example: RAR a-v50000k eclipse.rar Eclipse
This command is for the Eclipse folder to be compressed, with a size of 50000k per volume and a compressed file named Eclipse.rar
2. Decompression
Perform on any one of the volumes:
RAR e Eclipse.part1.rar can be.
Second, use tar
1. Sub-volume compression
Tar Cvzpf-eclipse | Split-d-B 50m
The above command is to compress the Eclipse folder into volumes, 50m per volume, and notice that there are spaces in front of eclipse. After compression, it will be named x00,x01,x02 ...
2. Decompression
First you need to merge:
The merged commands are: Cat x*>eclipse.tar.gz
Then unpack: Tar xzvf eclipse.tar.gz
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