Linux使用curl下载文件


 description

在linux系统中通过curl下载文件,在测试命令中,我们通过curl 命令来下载git 最新版本的安装版

 command

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

 parameter

curl :  是一个利用URL语法在命令行下工作的文件传输工具
-O, --remote-name :  将输出写入名为远程文件的文件

 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.