wget是在命令行下载文件的命令
-c 断点续传,用于大文件的下载或者网络不稳定的情况下,一般不写也可以
-P 指定下载到那个目录(是大写的P)
举例
[root@bogon local]# wget -c http://nginx.org/download/nginx-1.7.9.tar.gz -P /root/Downloads/
---- ::-- http://nginx.org/download/nginx-.tar.gz
Resolving nginx.org (nginx.org)... , , :::::3f, ...
Connecting to nginx.org (nginx.org)||:.. connected.
HTTP request sent, awaiting response... OK
Length: (808K) [application/octet-stream]
Saving to: ‘/root/Downloads/nginx-.tar.gz’
%[======================================>] , 568KB/s in 4s
-- :: ( KB/s) - ‘/root/Downloads/nginx-.tar.gz’ saved [/]
[root@bogon local]# ls /root/Downloads/
nginx-.tar.gz
[root@bogon local]#