wget是在命令行下载文件的命令
-c 断点续传,用于大文件的下载或者网络不稳定的情况下,一般不写也可以
-P 指定下载到那个目录(是大写的P)
如需下载的连接比较长,建议把下载地址放在单引号''中
举例
[root@bogon local]# wget -c http://nginx.org/download/nginx-1.7.9.tar.gz -P /root/Downloads/
--2017-06-22 18:58:42-- http://nginx.org/download/nginx-1.7.9.tar.gz
Resolving nginx.org (nginx.org)... 206.251.255.63, 95.211.80.227, 2606:7100:1:69::3f, ...
Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 827263 (808K) [application/octet-stream]
Saving to: ‘/root/Downloads/nginx-1.7.9.tar.gz’
100%[======================================>] 827,263 568KB/s in 1.4s
2017-06-22 18:58:51 (568 KB/s) - ‘/root/Downloads/nginx-1.7.9.tar.gz’ saved [827263/827263]
[root@bogon local]# ls /root/Downloads/
nginx-1.7.9.tar.gz
[root@bogon local]#