How to Download a File in Linux Using Wget

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

To install wget on Ubuntu/Debian use the following command.

sudo apt get install wget

To install wget on CentOS/RHEL use the following command.

sudo yum install wget
  • Step 2. Use the wget command to download the file from URL.
wget https://domain.com/file_path
Please rate this article to help us improve our Knowledge Base.

0 0