Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address: http://github.com/ziyaddin/xampp/archive/master.zip

but can't. What must I type?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

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:

wget http://github.com/ziyaddin/xampp/archive/master.zip

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

share|improve this answer

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

share|improve this answer

Try wget instead of curl: wget http://github.com/ziyaddin/xampp/archive/master.zip

share|improve this answer
Can the downvoter explain? Or is the other poster? –  don.joey Apr 26 '13 at 19:47

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.