How to use curl to download file in linux


 description

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

 command

curl -O https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz

 parameter

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

 result

  % 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.