linux中用wget下载指定下载路径和保存自定义文件名

在dropbox网盘上下载东西,挂了梯子下载一半就失败,很是恼火

文件小就算了,文件好几个G,梯子速度又慢,挂了几十分钟最后来个失败

然后我想到了用linux挂下来

链接是很长一段,不方便,开始示例

https://uc8038ec98acfdf67dd0e17acd7e.dl.dropboxusercontent.com/zip_download_get/AiP_FwF3ITnLTRfPn9YLUEws
VviSGpmJGpQdrRkEUruABHdbHN6eKZXDUQZrfMA9QpOr5dI7mO3AG2QIITa4ki87wKqahh0EKGQUVYt45GRD9A?_download_id=14917
17581440943414832895406612962781268273130152406951475075083&_notify_domain=www.dropbox.com&dl=1
我就想着改个名字简便一点,到时候上传起来好找文件名

第一个先说一下怎么指定到你要的路径
wget -P /root/ddd "https://uc8038ec98acfdf67dd0e17acd7e.dl.dropboxusercontent.com/zip_download_get/AiP_F
wF3ITnLTRfPn9YLUEwsVviSGpmJGpQdrRkEUruABHdbHN6eKZXDUQZrfMA9QpOr5dI7mO3AG2QIITa4ki87wKqahh0EKGQUVYt45GRD9A?
_download_id=1491717581440943414832895406612962781268273130152406951475075083&_notify_domain=www.dropbox.com&dl=1"

会把 上面这一长串的链接 文件保存到我自己在新建的 "/root/ddd" 目录下. 

第二是怎么自定义文件名
wget -O "APPS.zip" "https://uc8038ec98acfdf67dd0e17acd7e.dl.dropboxusercontent.com/zip_download_get/AiP_FwF3ITnLT
RfPn9YLUEwsVviSGpmJGpQdrRkEUruABHdbHN6eKZXDUQZrfMA9QpOr5dI7mO3AG2QIITa4ki87wKqahh0EKGQUVYt45GRD9A?_download_id=14
91717581440943414832895406612962781268273130152406951475075083&_notify_domain=www.dropbox.com&dl=1"

这一长串的链接保存在当前目录下,命名为"APPS.zip"

完整版最终看下面:
wget -P /root/ddd -O "APPS.zip" "https://uc8038ec98acfdf67dd0e17acd7e.dl.dropboxusercontent.com/zip_download_get/AiP_
FwF3ITnLTRfPn9YLUEwsVviSGpmJGpQdrRkEUruABHdbHN6eKZXDUQZrfMA9QpOr5dI7mO3AG2QIITa4ki87wKqahh0EKGQUVYt45GRD9A?_download_
id=1491717581440943414832895406612962781268273130152406951475075083&_notify_domain=www.dropbox.com&dl=1"
保存在"/root/ddd",命名为"APPS.zip"

THE END