Downloading Files

Learn how to download files using cURL.

Downloading files using CLI

Let’s look at how we can download files using the CLI.

Instead of displaying the response to the screen, we can use the redirection symbol (>) to push that content into a text file. We can grab a copy of the HTML response from Google this way:

curl http://google.com > google.html
cat google.html

Get hands-on with 1400+ tech skills courses.