把大文件压缩包拆分成多个分卷
将超大 zip 切成固定大小的分卷,接收方解压一步还原。
先用 zip -0 打包,再运行 zip -s 100m big.zip --out big-part.zip,即可切成 100 MB 的分卷。
01命令
命令
$ zip -r -0 big.zip ~/Desktop/BigFolder/ && zip -s 100m big.zip --out big-part.zip02作用说明
Info-ZIP 要求先打一个不压缩的包(-0)才能分卷,所以是两步;结果会得到 big-part.z01、.z02… 和最后一个 .zip。解压时只需处理最后一个 .zip,前面的分卷会被自动读取,Windows 的 7-Zip 同样支持。想要光盘大小用 -s 1900m,FAT32 兼容用 -s 4g。
03风险
!注意: 所有分卷必须放在同一文件夹,缺任何一卷都无法解压。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- zip – Package and compress files依据: zip -s size creates split archives in 100m/1g style chunks; the source must first be a non-compressed (store, -0) archive, and --out writes the split files.
最后验证: 2026-09-18 · 分类: 文件与文件夹