1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-12 11:55:23 +02:00
tldr/pages/common/wget.md

25 lines
454 B
Markdown
Raw Normal View History

2014-02-25 00:29:46 +08:00
# wget
> Download files from the Web.
> Supports HTTP, HTTPS, and FTP.
2014-02-25 00:29:46 +08:00
- Download a URL to a file:
2014-02-25 00:29:46 +08:00
`wget -O filename "{{url}}"`
2014-02-25 00:29:46 +08:00
- Limit download speed:
2014-02-25 00:29:46 +08:00
`wget --limit-rate={{200k}} {{url}}`
2014-02-25 00:29:46 +08:00
- Continue an incomplete download:
2014-02-25 00:29:46 +08:00
`wget -c {{url}}`
2014-02-25 00:29:46 +08:00
- Download a full website:
2014-02-25 00:29:46 +08:00
`wget --mirror -p --convert-links -P {{target_folder}} {{url}}`
2014-02-25 00:29:46 +08:00
- FTP download with username and password:
2014-02-25 00:29:46 +08:00
`wget --ftp-user={{username}} --ftp-password={{password}} {{url}}`