rar命令

分卷压缩,-v5m之间不要有空格,5m指的是分卷大小

rar a -v5m testfile.rar testfile

合并且解压

unrar x testfile.part1.rar

zip命令

先压缩不然就报错:zip error: Invalid command arguments (archive name must end in .zip for splits)

zip testfile.zip testfile

分卷

zip -s 5m testfile.zip --out testfile_fenjuan

利用cat来合卷

cat testfile_fenjuan.z* > testfile.zip

解压

unzip testfile.zip