Bash Command to Download a File From URL

In order to download a file using bash shell we can make use of the curl command.


Syntax:

curl -O URL


Example:

bash-3.2$ curl -O https://code2care.org/c2c-img/icons/jquery.png

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2824    0  2824    0     0   5130      0 --:--:-- --:--:-- --:--:--  5191
Bash Command to Download a file Example

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!