downloading a file from command line

You can use curl to download from http or ftp. For example:

curl ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2.sig > YOUR_FILE_NAME_HERE

curl sends the downloaded data to stdout, which is why you need to specifically save it to a file yourself. I like wget for downloading straight to disk, but it's not standard in OS X (you can install it via MacPorts if you like).
 
Somewhere along the line I found a link to a copy of wget compiled for OSX, I've attached it.

It's a little easier to use than curl.
 

Attachments

  • wget.zip
    120.3 KB · Views: 4
Back
Top