
To download and save the file with the different name as the source file name, use the following syntax: $ curl –o Download and save the file with a different name It will save the downloaded file as debian-10.0.0-amd64-DVD-1.iso.Īlternatively, you can also specify, “ –remote-name” instead of –O to save the file as the remote file name. To download and save the file with the same name as the source file name, use the following syntax: $ curl –O Download and save the file using the source file name Using the parameter, you can specify the URL of the remote server. Using the parameter, you can specify various functions, for instance, save the download with a specific name, resume a download, specify transfer rate and much more.

To download files using Curl, use the following syntax in Terminal: $ curl Once the installation is completed, we can use the Curl for downloading files. Then run the following command in Terminal to install Curl utility. When prompted for the password, enter superuser password. In the Terminal, type the following command to switch to the superuser account. When the Terminal icon appears, click on it to launch it. For that, go to the Activities tab in the top left corner of the desktop. Launch the Terminal application in Debian. To do so, follow the below steps: Install Curl It is not by default installed in Debian OS. It supports various protocols including HTTP, HTTPS, TELNET, SCP, FTP, etc. It is designed in such a way that you can run it without a user interaction. We can use it for downloading files from the web. Method #1 Download files using CurlĬurl is a command-line utility that is used to transfer files to and from the server. We will use Debian 10 for describing the procedure mentioned in this article.

These utilities working in the background even when you are not logged in. Both are free utilities for non-interactive download of files from web. In this article, we will explain how to download a file using the Linux command line using two different utilities. Downloading a file using the command line is also easier and quicker as it requires only a single command as compared to GUI which mostly requires long steps procedure.

You can automate the task using the command line and also it utilizes fewer resources than GUI. Command-line has many uses and is extensively used in server administration. Working in a Linux command line gives you more flexibility and control as compared to GUI.
