开发者

split file to specific sizes with tar command

开发者 https://www.devze.com 2023-04-10 19:05 出处:网络
There is an iso file with 5.5 GB in size. I want to split that with tar command each part should be 500M. What is the comm开发者_如何转开发and for that?It\'s not the job of tar to split files. Use spl

There is an iso file with 5.5 GB in size. I want to split that with tar command each part should be 500M. What is the comm开发者_如何转开发and for that?


It's not the job of tar to split files. Use split to split the tar file.


You can use split:

tar [your params] |split -b 500m - output_prefix

...Or use zip (or any other compressor):

tar [your params] | zip  -s 500m output.zip  -
0

精彩评论

暂无评论...
验证码 换一张
取 消