Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I want to unzip a certail directory inside a zip file using the following command:

unzip -oq upload -d temp/

But the system gives the following error:

caution: filename not matched:  upload

Actually, there is a directory called upload inside the zip file.

How can I unzip that directory only?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Just try do append / to the directory name just as:

unzip -oq upload/ -d temp/
share|improve this answer
you might need to specify upload/* – peterph Dec 6 '12 at 23:45

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.