【发布时间】:2015-07-17 17:43:25
【问题描述】:
1) 从大型 zip 文件中提取
我想从 linux 服务器上的一个大 zip 文件 (30Gb+) 中提取文件。有足够的可用磁盘空间。
我试过jar xf dataset.zip。但是,有一个错误push button is full,它无法提取所有文件。
我尝试了unzip,但 zipfile 已损坏。
Archive: dataset.zip
warning [dataset.zip]: 35141564204 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [dataset.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
我试过zip -FF dataset.zip --out data.zip,有一个错误,条目太大:
zip error: Entry too big to split, read, or write (Poor compression resulted in unexpectedly large entry - try -fz)
无论如何我可以有效地从非常大的 zip 文件中提取文件吗?
2) 从大型 zip 文件中提取某些文件
如果我只想要这个大 zip 文件中的某些文件,我是否只能提取这些文件?例如,dataset.zip 中的 data1.txt?看来我不能使用任何zip 或unzip 命令(总是有压缩文件损坏的问题)。
谢谢!
【问题讨论】:
-
您是否有足够的可用磁盘空间来放置解压缩文件?是否有任何文件在解压缩后足以超过文件系统的最大单个文件大小?
-
有足够的可用磁盘空间。我现在不需要所有文件。无论如何我只能从解压缩的文件中提取某些文件?
标签: linux zip extract large-files