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've got ~50 zip files, each containing a similar directory structure but with different files inside.

Is there a way I can easily dir the contents of those zips?

I'm interested in creating a list of all the files with their relavite paths, such as a/b/c/file.txt

share|improve this question

Download the command-line version of 7-zip (7za) and do a 7za -l. This will list the contents of the file. You can then, of course, put this into any kind of batch script.

share|improve this answer
  • Info-Zip's UnZip (in zipinfo mode):

    unzip -Z1
    zipinfo -1

    More information:

    unzip -Z
  • 7z:

    7za l
share|improve this answer

If you have jdk you can try jar: $ /cygdrive/c/jdk1.6*/bin/jar -tf tcpmon-1.0-bin/ tcpmon-1.0-bin/apidocs/ tcpmon-1.0-bin/apidocs/org/ tcpmon-1.0-bin/apidocs/org/apache/ tcpmon-1.0-bin/apidocs/org/apache/ws/ tcpmon-1.0-bin/apidocs/org/apache/ws/commons/ tcpmon-1.0-bin/apidocs/org/apache/ws/commons/tcpmon/ tcpmon-1.0-bin/apidocs/org/apache/ws/commons/tcpmon/class-use/

share|improve this answer

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.