How to Download a File in Linux Using Curl

  • Step 1. If not already present on your server, install the curl packages.

  • To install curl on Ubuntu/Debian use the following command.
sudo apt get install curl
  • To install curl on CentOS/RHEL use the following command.
sudo yum install curl
  • Step 2. Use the curl command to download the file from URL.
curl https://domain.com/file_path
Please rate this article to help us improve our Knowledge Base.

0 0