Ire*_* W. 9 linux zip extract large-files
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)
Run Code Online (Sandbox Code Playgroud)
我试过了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命令(总是有zipfile损坏的问题).
谢谢!
Ire*_* W. 15
我已经解决了这个问题.事实证明这是一个拉链腐败问题.我首先修复了以下文件:
zip -FF filename1.zip --out filename2.zip -fz
Run Code Online (Sandbox Code Playgroud)
然后解压缩固定的zipfile:
unzip filename2.zip
Run Code Online (Sandbox Code Playgroud)
并已成功提取所有文件!
非常感谢Fattaneh Talebi您的帮助!
你可以从zip中提取特定文件
$ unzip -j "zipedfile.zip" "file.txt"
Run Code Online (Sandbox Code Playgroud)
file.txt是您要从zipedfile.zip中提取的文件
| 归档时间: |
|
| 查看次数: |
15061 次 |
| 最近记录: |