May 2022

Download A File With curl On The Command Line

You can download a file with curl like you can with wget by using the -o (aka --output) flag like this:

curl https://www.example.com -o example.html

If you don't want to see the status updates, add -s (aka `--silent`)

curl https://www.example.com -s -o example.html
end of line