Fork me on GitHub

Linux split package into more parts

Sometimes their single package space is limited, just like no bigger than 10M for each document, in these conditions, we need split the big one into more pieces.

tar -czvf xxx.tar.gz file_directory

split -b 5M -d -a 1 xxx.tar.gz xxx.tar.gz.   pay attention to the dot (.) at the end of the command.

//Use the split command. - b 5M means to set the size of each split package. The unit is k is working.
//The - d "parameter specifies that the generated packet splitting suffix is in the form of a number
//-A x to set the length of the sequence (the default value is 2), here the length of the sequence is set to 1

posted @ 2022-10-18 14:27  kean0048  阅读(13)  评论(0编辑  收藏  举报