Download File from the terminal with Mac

Written by
Date: 2015-05-01 18:45:00 00:00


If for some reason while using a Mac, you may want to download a file using the terminal, you’ll really have to love the terminal to it, but let’s assume you want to it that way.

Mac as a Unix based system has a lot of resources to accomplish a lot of tasks from the terminal.

How to download a file in a Mac from the terminal

The best tool you can use with a Mac to download a file is curl, so first go to the folder you want to download the file to and issue this command:

curl -O

Of course change the url in the example for the one of the file you need to download.


Yes, it may be ease to perform this task from the GUI rather than using the terminal, but in any case you may need this, I hope this is useful for you, and the terminal may help you get the most of you Mac OS X