How to View Contents of a Zip File Without Expanding

You may already be aware that there are a number of QuickLook™ plugins to do this but if you have used any of them you will have noticed that they are slow to produce a list of the contents.
My gut feeling is that the plugin is actually expanding the Zip archive to list the contents which really defeats the purpose as it would probably be best to simply double-click the Zip in the first place.

Solution

A better way to do this is to use a Terminal command to view the contents.

  1. Open Terminal (Applications/Utilities)
  2. Type the following command…

unzip -l “$@” <path and name of Zip file> 
e.g.
unzip -l “$@” /Users/exampleuser/Desktop/ziparchive.zip
Tip: after typing unzip-l “$@” you drag & drop the Zip file onto the Terminal window to complete the rest)

3.  Press the “Return” key after typing the above command and path to display the contents listing.

Alternatively,  if you would prefer the contents listing to be written to a text file then type…
unzip -l “$@” ziparchive.zip > ziparchive.txt
Replace my example name ziparchive.zip with whatever the path to and name of your files is and the “ziparchive.txt” can be named whatever you choose the output file to be named.