Unzipping files is a common task in the realm of data management and software development. However, sometimes you may find yourself needing to extract only specific directories from a large archive. Fear not, for in this post, we delve into the art of selective extraction, empowering you with the knowledge to unzip only the directories you need.

Unleashing Selective Extraction
Picture this scenario: you have a massive archive containing a plethora of files and directories, but you're only interested in extracting a particular directory nestled deep within the labyrinth of files. How do you tackle this task efficiently? Fear not, for the solution lies within a simple yet powerful command:

unzip /path/to/archive.zip dir/folder/* -d /path/to/unzip/to

Putting It into Practice
Let's say you have an archive named data.zip, and within it, you want to extract only the contents of the documents directory to a folder named extracted in your home directory. Here's how you would do it:

unzip ~/data.zip documents/* -d ~/extracted