zip split linux,zipsplit(将单个zip归档文件拆分为一组较小的zip文件)_语法_示例_Unix&Linux命令_uc电脑园官网...

zipsplit [-t] [-i] [-p] [-s] [-n size] [-r room] [-b path] [-h] [-v]

[-L] zipfile

-t

Report how many files it will take to perform the split, but don't actually split anything.

-i

Create a zip index named zipsplit.idx, and include its size in the first zip file.

-n size

Create zipfiles no larger than size bytes. For the split to be successful, size must be larger than the largest file in the original zipfile. Default is 35978 bytes.

-r room

Make the first split file smaller by room bytes. This option can be useful if you intend to store the split zipfiles on removable disks, and you need extra space on the first disk for other software, such as an executable file to decompress the archives. The default value of room is zero.

-b path

Output zip files into the path path.

-p

Pause between each zip file that is output.

-s

Perform a sequential split even if it requires more zip files. In other words, make sure that the order of files in the split archives exactly matches the order of files as they appear in the original archive; do not "shuffle them around" when splitting them up.

-h

Display a help message, and exit.

-v

Display version information, and exit.

-L

Display software licensing information, and exit.

Limitations

zipsplit does not support splitting archives that are larger than 2 gigabytes.

zipsplit offers very little control over how it decides to split up your archive. If one of the files inside your archive is very large, you may not be able to split the archive at all, because zipsplit cannot span a single archived file across multiple zipfiles.

The default maximum size of a split file is approximately 36 kilobytes, which by modern standards is very small. If you want or need to create splits larger than 36 Kb, you must specify a different maximum size using the -n option.

There is no convenient way to re-assemble a set of split zip archives into a single unified archive. Concatenating them manually and then "fixing" the concatenated file with zip's -FF option is possible, however. For example, if your split files are named archive01.zip, archive02.zip, etc. you could concatenate them into a new file, whole.zip, with the command:

cat archive*.zip > whole.zip

...and then "fix" whole.zip (re-build its index), using the command:

zip -FF whole.zip --out fixed.zip

...which would leave you with a re-assembled archive named fixed.zip.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值