wget下载指定网址的全部文件
# wget下载指定网址的全部文件
主要命令
You have to pass the -np
/--no-parent
option to wget
(in addition to -r
/--recursive
, of course), otherwise it will follow the link in the directory index on my site to the parent directory. So the command would look like this:
wget --recursive --no-parent http://example.com/configs/.vim/
1
To avoid downloading the auto-generated index.html
files, use the -R
/--reject
option:
wget -r -np -R "index.html*" http://example.com/configs/.vim/
1
提示
- 为了避免出现无用的
index.html
文件,最好使用第 2 个命令
编辑 (opens new window)
上次更新: 2022/02/19, 13:02:00