Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address:

but can't. What must I type?

share|improve this question
up vote 12 down vote accepted

I found it. I must use curl -LOk and it works fine. wget command is good too.

share|improve this answer
Worked for me. using Windows 7 – fedmich Dec 10 '14 at 7:08

If you want to download the file use wget [option]... [URL]... instead.

For more information regarding the options, just type this into your Terminal: man wget

For you purpose:


Note that the .zip file will be saved in the current directory you are in.

share|improve this answer
It would be helpful to explain the advantages of using wget over of curl. For anyone wondering the differences between the two see here. – Jorge Bucaran Dec 9 '14 at 17:50

Try wget instead of curl: wget

share|improve this answer
Can the downvoter explain? Or is the other poster? – don.joey Apr 26 '13 at 19:47
Could you explain why wget instead of curl? – Jorge Bucaran Dec 9 '14 at 17:52
less command lines (if you care) - which means less options, But the biggest difference is that wget support recursive download – Ran Davidovitz May 8 '15 at 15:14

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.