Mac大文件分包切割与合并

1. tar czvf testfile.tar.gz testfile.doc  
  把所需切割文件或目录压缩打包;
2. split -b 40m testfile.tar.gz
  把压缩打包后的文件切割成每份40m的大小;
3. cat x* > testfile.tar.gz
  把切割之后的文件合并成压缩打包文件;  
4. tar zxvf testfile.tar.gz
  解压缩并还原成原始文件;

转载于:https://www.cnblogs.com/mrfriday/p/3235767.html