Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Example structure


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

share|improve this question

migrated from Aug 20 '11 at 15:55

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

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/doc/*" -d /tmp/

share|improve this answer
$ 7z x rootfolder/subfolder

The syntaxes of all commands in 7-Zip are similar. x stands for "eXtract with full paths".

share|improve this answer

Open the 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.