Wget: Difference between revisions
From wikinotes
(Created page with "wget helps you download files, or entire websites.") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
wget helps you download files, or entire websites. | wget helps you download files, or entire websites. | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| <code>man wget</code> || https://man.archlinux.org/man/extra/wget/wget.1.en | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Usage = | |||
<blockquote> | |||
common flags | |||
<syntaxhighlight lang="bash"> | |||
wget \ | |||
--recursive \ | |||
--convert-links \ | |||
--no-parent \ | |||
--tries=1 \ | |||
--timeout=5 \ | |||
-R "*exclude/me*" \ | |||
'https://foo.domain.com' | |||
</syntaxhighlight> | |||
</blockquote><!-- Usage --> | |||
= Tricks = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
# execute wget, using an alternative hosts file | |||
# see: man gethostbyname | |||
env HOSTALIASES=/foo/hosts \ | |||
wget ... | |||
</syntaxhighlight> | |||
</blockquote><!-- Tricks --> |
Latest revision as of 01:21, 14 June 2022
wget helps you download files, or entire websites.
Documentation
man wget
https://man.archlinux.org/man/extra/wget/wget.1.en
Usage
common flags
wget \ --recursive \ --convert-links \ --no-parent \ --tries=1 \ --timeout=5 \ -R "*exclude/me*" \ 'https://foo.domain.com'
Tricks
# execute wget, using an alternative hosts file # see: man gethostbyname env HOSTALIASES=/foo/hosts \ wget ...