ywat ywat - 2 months ago 10
Linux Question

Linux command to check zip file hierarchy

Is there a good linux command that can show the file hierarchy of zipped directory?

If I open a zip file with emacs, I can see it. But I guess there is a appropriate command for that purpose.

Thank you.

Answer

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.