Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a zip file with many directories and files inside of it. I'd like to determine which files are taking up the most compressed space in the archive. Anyone know of a handy mechanism to do this?

share|improve this question
I can only think of shoving unzip -v through awk. – Ignacio Vazquez-Abrams May 17 '11 at 20:00
up vote 3 down vote accepted

Any typical zip utility such as 7-zip will display the file system within the zip file in a flat manner; versus hierarchical.

This will allow you to sort the files based on size providing the data you are looking for.

share|improve this answer
Thanks Aaron, I tried that, but in 7-zip the packed size column shows all 0's except for one file which shows the entire packed file. I an view and sort on the original sizes of the files, but that's not helpful in this case. Do you think there's something odd with my version of 7-zip? – Rich May 17 '11 at 20:04
actually just tried it again. Looks like 7-zip compression doesn't behave well for viewing compressed files, but when I zip with a regular deflate method in .zip it's fine. Thanks for the help. – Rich May 17 '11 at 20:13
@Rich Modify the view; View -> Flat View...then look at the Size column. – Aaron McIver May 17 '11 at 20:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.