Tar subcontracting compression and consolidation today is a happy day, ushered in a new project----MediaTek tablet. But encountered a problem, the tar of sub-package compression and merger incredibly in the information book can not find, so I hurriedly Baidu, found the relevant information. In the engineering directory encountered a large number of gz.aa ..... gz.ai and so on the file, suddenly a little overwhelmed, read this article to know, so, so I reproduced it to my blog as a record. In order to maintain the unity of the article, here I have written for the original, if there is infringement, please contact Delete, thank you! To compress and split the directory logs into multiple 1M files, you can use the following command: Tar cjf-logs/|split-b 1m- Logs.tar.gz2. When completed, the following files will be produced: Logs.tar.gz2.aa, Logs.tar.bz2.ab, logs.tar.gz2.ac to unzip, just execute the following command: Cat logs.tar.gz2.a* | Example of the tar XJ: to compress file test.pdf into a bytes file: Tar czf-test.pdf | Split-b 500-test.tar.gz last to remind but those two "-" do not miss, that is the argument of the tar ouput and split input. Gzcat Sxrt5.0.dvd1.tar.gza[a-c]|tar xvf-1, merging files using spilt split # cat Sxrt5.0.dvd1.tar.gzaa Sxrt5.0.dvd1.tar.gzab Sxrt5.0.dvd1.tar.gzac >>sxrt5.0.dvd1.tar.gz2, unzip the gz file # gunzip sxrt5.0.dvd1.tar.gz3, unzip the tar package # tar XVF Sxrt5.0.dvd1.tar
Reprinted from: http://xxw8393.blog.163.com/blog/static/37256834201172910058899/
MediaTek's first challenge to the Android 6.0 project: Tar subcontracting and bundle