How can I list the files in a zip archive without decompressing it? How can I list the files in a zip archive without decompressing it? linux linux

How can I list the files in a zip archive without decompressing it?


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


The less utility is capable of peeking into a zip archive.

Less comes bundled with Unix and there is no need to install als.The output is scrollable (paged) and does not log things to the terminal (unlike unzip -l mentioned in the other answer).

As per https://superuser.com/a/216675/249975,

So simply use less filename.zip