can I extract files from a specific folder inside a zip archive
to a current folder?
I tried to use
unzip archive.zip folder/*
But I got folder "folder" in my current directory.
How can I extract files in "folder" to current directory?
unzipzip
can I extract files from a specific folder inside a zip archive
to a current folder?
I tried to use
unzip archive.zip folder/*
But I got folder "folder" in my current directory.
How can I extract files in "folder" to current directory?
Best Answer
According to the answers here you can do it with single quotes
'
around the folder you want to extract. Use-j
for junk paths which means the archive's directory structure is not recreated. Use-d
to specify what folder you want it extracted to. Below is shown extracting a folder with1992
in the folder name from an archive that has multiple folders contained with in by running this line:Example:
All I want to extract is the folder with
1992
in the name to a folder named1992/
: