wget指定下载位置
时间: 2023-04-29 10:00:04 浏览: 255
使用wget命令下载文件时,可以使用-O参数来指定下载文件的保存位置。例如:
wget -O /path/to/save/file http://example.com/file.zip
其中,/path/to/save/file是你想要保存文件的路径,http://example.com/file.zip是你要下载的文件的URL。
相关问题
wget 下载到指定目录
你可以使用 `-P` 参数来指定下载文件的存放目录,如下所示:
```
wget -P /path/to/directory http://example.com/file.zip
```
其中,`/path/to/directory` 是你想要保存文件的目录路径,`http://example.com/file.zip` 是你要下载的文件的 URL 地址。
这样,当你运行上述命令时,`file.zip` 文件将被下载到 `/path/to/directory` 目录中。
wget下载到指定文件夹
使用wget命令下载文件时,可以通过-O参数指定文件保存的路径和文件名,例如:
wget -O /path/to/file/filename http://example.com/file
其中,/path/to/file是指定的文件夹路径,filename是文件名,http://example.com/file是要下载的文件的URL。这样,下载的文件就会保存在指定的文件夹中。