linux:command-wget
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | linux:command-wget [2012/10/12 14:01] (current) – created percy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== wget usage ====== | ||
| + | Refer to: | ||
| + | ===== wget --mirror ===== | ||
| + | 下载整站 | ||
| + | < | ||
| + | 方法:用--mirror参数 | ||
| + | |||
| + | 当你要下载一个完整站点并实现本地浏览的时候, | ||
| + | wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL | ||
| + | |||
| + | 参数讲解: | ||
| + | --mirror:设置这个参数用来建立本地镜像 | ||
| + | -p:下载所有html文件适合显示的元素 | ||
| + | --convert-links:下载完成后,将文档链接都转换成本地的 | ||
| + | -P ./ | ||
| + | </ | ||
