Have you ever wanted to see what's in a Zip archive without unzipping it? Well, it turns out that there is a Terminal command you can use to do so: zipinfo. Just run zipinfo [filename] to get a list of files in an archive.
There are a number of interesting options to this command. The default behavior is to list the files in a short "ls -l" format, but you can also use the -m or -l options to have medium or long lists. You can use the -1 option to only show file names. And there are other useful options in the man zipinfo page.
One other useful item is the amount of space the archive takes up, and the amount of space saved. For example:
12 files, 10587791 bytes uncompressed, 9400060 bytes compressed: 11.2%
It's worth noting that this command has been around for a long time, and I was surprised to find that it's not mentioned here.| Read more »