You are not logged in.
I want to unzip a 75GB file with 90GB disk space available in total. I was not able to find a way to extract files out of the archive and delete them directly after, so that I don't reach my disk space limitations. How comes that there is no such option in the unzip program and does anyone know a good way to solve my problem?
Thanks in advance!
Last edited by Aromatix (2021-06-27 09:47:08)
I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks ![]()
Offline
I want to unzip a 75GB file with 90GB disk space available in total.
Do you have any idea about the unzippped size? The compression rate for text is ~ 1:10 …
a way to extract files out of the archive and delete them directly after
I assume you mean "delete them from the archive"? That doesn't necessarily help you because even if the files are compressed individually, "deleting" a file can just mean to remove it from the archives file table.
You can iterate over "unzip -l" and extract the file, then use zip -d to delete it.
But again: unless the zip is -0 compressed, this will probably still get you into disk space issues.
1TB usb drives cost like $25 to $50, so…
Offline
The contained files are mostly jpg images, the unzipped space will be about 5gb bigger than the archive.
I'll will use the unzip, zip -d hack, still wondering tho that there is no build in functionality for this since it sounds like a common scenario.
Anyways, good suggestion and thanks for your help!
I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks ![]()
Offline