Download Files from the Web via the OS X Command Line
I am frequently developing web pages and often times I find it frustrating when I can not restart my browser because I’m in the middle of a download. So when I need to download a large file and I don’t want to have to worry about whether or not Safari or Firefox continues to run with out interruption, I turn to the trusty Terminal!
Next time you have a file you want to download, just copy the URL into your clipboard., then open a Terminal window and type the following commands:
Now that we have changed our directory to the “Desktop” (for convenience) we can start our download. For the download we are going to use a built in utility called “curl”.
curl -O http://www.exampleURLthatisNotReal.com/downloads/Example/File/That/DoesNotExist.sit
Read on for a screenshot of curl in action.