Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 m trying to unzip "" into the current directory using:


But i get a prompt:

replace /home/jaggib/ [y]es, [n]o, [A]ll, [N]one, [r]ename:'

It looks to me that it is creating archive instead of uncompressing it.

I tried to specify a destination directory, but that gives the same result.

I am using Ubuntu 13.10. Am not following the syntax correctly or is there an additional argument that i have to use.

share|improve this question
up vote 4 down vote accepted

The file itself probably has a file (or a directory) in it called "" and therefor prompts you on what to do.Do this:

unzip -d tmp/

It will create directory tmp/ and extract the files in that directory. Since that directory does not have a it will extract without a warning.

share|improve this answer
Thanks, thats exactly what was happening. I found that the zip command that i was using 'zip -r --filesync --quiet /home/jaggib/' was actually creating zip within zip. – jsbisht Nov 16 '13 at 18:44
can you suggest whats wrong with my zip command? – jsbisht Nov 16 '13 at 18:45
Hmm nothing wrong but you do do a weird thing. If you do it like that you have a on disc and make a zipped file named that has in it. Restoring is possible but you can use the -d option as shown to keep the zip and get the zip from the zip (this is getting weird ;) ) – Rinzwind Nov 16 '13 at 18:48
Yeah. I get the unzipping part. But i am wondering, how do i sync the files on my current directory zip to the zip in my home directory, using the zip command. So that i dont get '' getting wrapped under the new '' after the zip command. – jsbisht Nov 16 '13 at 18:54
I would use another name for the zip command. Use the name to zip the files (including – Rinzwind Nov 16 '13 at 19:00

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.