less command on Ubuntu allows to peek inside different kinds of archives from terminal. For example, all of these commands would show me the list of files in each of the four archives:
less archive.zip less archive.tar.gz less archive.tar.bz2 less archive.7z
On MacOS, I can use
vim for this. However, this is less convenient, because Vim requires four buttons to be pressed to exit it (
:q + return) instead of one (
Is there an equivalently fast way to see list of files in archives for MacOS?