View list of files in ZIP archive on Linux

How can I view the list of files in a ZIP archive without decompressing it?


Solution 1:

The less utility is capable of peeking into a zip archive. In fact, if you look at the outputs of unzip -l zipfile and less zipfile, you will find them to be identical.

Solution 2:

Try unzip -l files.zip | less

Also, See man unzip for more options

Solution 3:

To list zip contents:

zipinfo -1 myzipfile.zip

For detailed output:

zipinfo myzipfile.zip

Solution 4:

Please use

vim ZIP_FILE_NAME

for the same. This is a simple and easy to remember one.