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: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X





























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