假设我们有一个所需文件的完整URL,例如
http://domain.com/directory/4?action=AttachFile&do=查看&功放;目标=文件.tgz
我想去没有安装一个新的软件。 有可能吗?
命令
cp 'http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz' hooray不起作用;)
假设我们有一个所需文件的完整URL,例如
http://domain.com/directory/4?action=AttachFile&do=查看&功放;目标=文件.tgz
我想去没有安装一个新的软件。 有可能吗?
命令
cp 'http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz' hooray不起作用;)
开放式终端和类型
wget "http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz" 以将文件下载到当前目录。
wget -P /home/omio/Desktop/ "http://thecanadiantestbox.x10.mx/CC.zip"将文件下载到 /home/omio/Desktop
wget -O /home/omio/Desktop/NewFileName "http://thecanadiantestbox.x10.mx/CC.zip"将文件下载到 /home/omio/Desktop 把你的 NewFileName 姓名。
你可以通过使用curl来做到这一点。
curl -O http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz-O保存与url中同名的文件,而不是将输出转储到stdout
浏览更多 资料
我用 axel 和 wget 对于从终端下载,axel是下载加速器
语法
阿克塞尔
axel www.example.com/example.zipwget的
wget -c www.example.com/example.zip有关更多详细信息类型 man axel, man wget 在终端机
只是为了增加这个问题的味道,我也建议你看看这个:
history -d $((HISTCMD-1)) && echo '[PASSWORD]' | sudo -S shutdown now
你可以用这个来关闭你的电脑。 wget 命令与 ; 也许或在一个 bash 脚本文件。
这意味着您不必在晚上保持清醒并监视,直到您的下载(un)成功运行。
没有提到Aria2只是一种伤害,所以说,看看Aria2。 https://aria2.github.io/
只需输入终端即可安装:
sudo apt install aria2然后只需键入以下内容即可下载文件:
aria2c http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz你可以找到更多的帮助 aria2 由其 man 页。
我从Oh-my-zsh做了这些步骤,
brew install wgetwget https://github.com/sencha-extjs-examples/QuickStart/archive/master.zip
使用’wget-O hooray"http://domain.com/directory/4?action=AttachFile&do=get&target=file.tgz如果下载文件时连接丢失,您可以添加-c选项来恢复下载。
wget'也许是最简单的方法,但你也可以使用curl`。 读这个
'wget’是你在这里的朋友:)
"万岁"把我打碎了