1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00

wget: add Chinese translation

This commit is contained in:
KsRyY 2019-08-15 08:45:57 +08:00 committed by Starbeamrainbowlabs
parent 6ba7e6571a
commit 0ceaa59cf2

37
pages.zh/common/wget.md Normal file
View file

@ -0,0 +1,37 @@
# wget
> 从网络上下载文件.
> 支持 HTTP, HTTPS, 和 FTP.
> 更多信息: <https://www.gnu.org/software/wget>.
- 将该URL的内容下载到文件中 (在这个例子中文件名为 "foo"):
`wget {{https://example.com/foo}}`
- 将该URL的内容下载到文件中 (在这个例子中文件名为 "bar"):
`wget -O {{bar}} {{https://example.com/foo}}`
- 以每三秒一个请求的速度下载一个网页和其所有资源 (脚本, 样式表, 图片等等):
`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}`
- 从一个目录中下载所有列出的文件和其所有子文件夹 (不下载内嵌网页):
`wget --mirror --no-parent {{https://example.com/somepath/}}`
- 限制下载速度和重试次数:
`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}`
- Download a file from an HTTP server using Basic Auth (also works for FTP):
`wget --user={{username}} --password={{password}} {{https://example.com}}`
- 继续一个未完成的下载任务:
`wget -c {{https://example.com}}`
- 将指定文件中所有列出的URL下载到一个地址中:
`wget -P {{path/to/directory}} -i {{URLs.txt}}`