Download files from command line with cURL or wget

cURL is a very common command line utility which you can use to download files from the command line. Syntax is dead simple:

curl -O <download_url>
curl -o <target_file_name> <download_url>

Another option is to use wget, which is a bit less common:

wget <download_url>
wget -O <target_file_name> <download_url>

Nice how they have the same basic syntax 🙂