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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap