1. 在shell 中执行以下命令
wget -P /root/test "http://www.baidu.com/index.html"会把 index.html 文件保存到 "/root/test" 目录下.
2. 执行
wget -O "baidu.html" "http://www.baidu.com/index.html"会把 index.hmtl 保存到当前目录, 命令为 "baidu.html".
3. 执行
wget -P /root/test -O "baidu.html" "http://www.baidu.com/index.html"的结果和 2 相同, 并不会保存到 "/root/test" 目录下.
解析wget命令在shell中的使用
2889





