How to download a file from http url?

olala picture olala · Oct 30, 2013 · Viewed 60.3k times · Source

I know how to use wget to download from ftp but I couldn't use wget to download from the following link:

http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file

If you copy and paste it in the browser, it'll start to download. But I want to download it to our server directly so I don't need to move it from my desktop to the server. How do I do it?

Thanks!

Answer

FedeCz picture FedeCz · Oct 30, 2013

This is what I did:

wget -O file.tar "http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file"