Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This answer and this one suggest p7zip to work with 7zip-archives under Linux. I can see option for compressing and decompressing. But how can I get a content-listing of an archive, without decompressing it?

share|improve this question

2 Answers 2

Have you tried this?

7z --help

It should have told you

l: List contents of archive

So 7z l archive.7z should list the content.

share|improve this answer
The p7zip package does not have an executable called 7z. –  Dennis Nov 29 '11 at 17:06
Oh, I see. It comes from p7zip-full. –  choroba Nov 29 '11 at 17:48

The executable p7zip of the package p7zip does not have this function.

If you install p7zip-full, you can use the executable 7z which does.

7z -h shows you the basic syntax.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.