How to extract files from a large (30Gb +) zip file on a linux server

1) extract from a large zip file

I want to extract files from a large zip file (30Gb +) on a linux server. Enough free disk space.

I tried jar xf dataset.zip . However, there is an error that push button is full , and it was not possible to extract all the files.

I tried unzip , but the zipfile is corrupted.

 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) 

I tried zip -FF dataset.zip --out data.zip and there the error is too big:

zip error: Entry too big to split, read, or write (Poor compression resulted in unexpectedly large entry - try -fz)

Anyway, can I efficiently extract files from a really big zip file?

2) extract specific files from a large zip file

If I need only some files from this large zip file, can I still extract only these files? For example, data1.txt from dataset.zip? It seems that I cannot use the zip or unzip command (there is always a problem with zipfile corruption).

Thanks!

+7
linux extract large-files zip
source share
5 answers

I solved the problem. It turns out that the problem is corruption in the zip code. I first installed the file with:

 zip -FF filename1.zip --out filename2.zip -fz 

then unzip the fixed zip file:

 unzip filename2.zip 

and successfully extracted all the files!

Many thanks to Fattaneh Talebi for your help!

+11
source share

you can extract a specific file from zip

 $ unzip -j "zipedfile.zip" "file.txt" 

file.txt is the file you want to extract from zipedfile.zip

+5
source share

try extracting directories to maintain control and know where you left off. for example: tar tv --wildcards -f siteRF.tar './Movies/*'

0
source share

I tried all the steps above to unzip the file, but failed unsuccessfully.

My last application was to copy my zip file (11.1GB) to the hard drive and unzip it using 7 ZIP on Windows 8.

Works like a charm: D

0
source share

I had a similar problem and it was solved by the unar team.

unar file.zip

-one
source share

All Articles