How do I search the content of 7-Zip archives (.7z)?

On Windows, use a command prompt:

cd C:\Program Files\7-Zip
7z

To search for a specific file, e.g. namefile:

7z l compressed.tar namefile -r

Video tutorial: Search files with 7-Zip


WinRAR can do it. However, let's face that fact it involves unpacking it, even though WinRAR does it seamlessly.

WinRAR, searching an archive