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.

I want to unzip an ZIP archive, but just a subfolder in it.

Example structure archive.zip:


I just want to unzip subsubfolder with 7-Zip (preferably). How can I do it?

share|improve this question

migrated from stackoverflow.com Aug 20 '11 at 15:55

This question came from our site for professional and enthusiast programmers.

2 Answers 2

To unzip only the "doc" directory inside the ZIP file to "/tmp" directory, you need to specify the absolute path of "doc" directory inside ZIP file:

[bash]$ unzip test.zip "test/doc/*" -d /tmp/

share|improve this answer

Open the archive.zip with the 7-Zip file manager. Click and highlight the subfolder. Extract. I'm not sure how to use the command line interface for this behavior.

share|improve this answer

Your Answer


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