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

While trying to unzip a file named to the directory named joomla I get filename not matched. Why is that?

[root@Feddy Joomla]# unzip -Z /opt/lampp/htdocs/joomla/
caution: filename not matched: /opt/lampp/htdocs/joomla/

Here is the screen cast of the directory:

joomla screen cast

(The joomla directory is empty)

share|improve this question

2 Answers 2

You can also get this when trying to specify the files to unzip and using a wildcard character. For example:

unzip -o somedir/*

What may happen is that bash expands somedir/* to an actual existing dir and the files it contains. That list is then passed to unzip and it tries to find these files in the zip file.

To prevent this behavior just escape the * like this:

unzip -o somedir/\*

Or, put the files to extract in double quotes:

unzip -o "somedir/*"
share|improve this answer
Thanks, this is the problem I was having. – Robin Dec 17 '14 at 9:17

The file name argument after the archive name specifies a file to extract. Use -d to specify the target directory:

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
    -d  extract files into exdir

Moreover, -Z is used to querying the archive, not extracting.

share|improve this answer
didn't get you. Can you please write the command – Suhail Gupta Mar 9 '13 at 10:00
@SuhailGupta: unzip -d /opt/lampp/htdocs/joomla/, i.e. drop -Z, add -d. – choroba Mar 9 '13 at 10:04

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.