einpoklum einpoklum - 2 months ago 7
Bash Question

How can I list the contents of a zip file without decompressing it?

How can I get the equivalent of an

of a .zip file (not gzip), without decompressing it, from the command shell?


Perreal's answer is right, but I recommend installing atool (look for it in your distribution's package manager). Then, for any kind of archive file, bzip2, gzip, tar... you have just one command to remember :

als archive_name