How to use curl to download file in linux


Download files through curl in the linux system. In the test command, we download the latest version of git through the curl command.


curl -O


curl :  is a file transfer tool that works from the command line using URL syntax
-O, --remote-name :  write output to a file named remote file


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5789k  100 5789k    0     0  30038      0  0:03:17  0:03:17 --:--:-- 36449
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.