Download a file from a link in Terminal

curl ships with the system: curl -LO followed by the link saves the file into the current folder under its own name, following redirects on the way.

How

Download into the current folder:

curl -LO https://example.com/report.pdf

Or choose the name yourself:

curl -L -o ~/Downloads/report.pdf https://example.com/report.pdf
Or just ask Titan
Download every PDF linked on this page into a folder. Do it with Titan

Titan is an AI that lives on your computer: tell it what you need and it does it while you watch — you press Return, nothing runs by itself. What is Titan?

Titan isn’t on this computer yet. Get Titan, then press the button again — the task will be waiting, typed in.

Related

Check if a website is down