Find out how to download files using curl command in terminal. Curl command helps to access a URL directly from the command-line in Linux. cURL which stands for Client URL is a command-line tool for transferring data using various network protocols.
In some scenarios, we might want to download a file from a URL and save it to a file.
Using curl we can do it. The syntax for this would be:
curl http://your.url --output your.file
Let’s say I would like to download a file from a url and save it to a zip file with name ngrok.zip, I can do it with the following command.
curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip --output ngrok.zip