wget 指定本定文件夹和保存为特定名称

xiaoxiao2021-02-28  102

1. 在shell 中执行以下命令

[plain] view plain copy wget -P /root/test "http://www.baidu.com/index.html"   会把 index.html 文件保存到 "/root/test" 目录下. 

2. 执行

[plain] view plain copy wget -O "baidu.html" "http://www.baidu.com/index.html"   会把 index.hmtl 保存到当前目录, 命令为 "baidu.html".

3. 执行

[plain] view plain copy wget -P /root/test -O "baidu.html" "http://www.baidu.com/index.html"   的结果和 2 相同, 并不会保存到 "/root/test" 目录下.
转载请注明原文地址: https://www.6miu.com/read-35118.html

最新回复(0)