Wget: Difference between revisions
From wikinotes
(→Usage) |
No edit summary |
||
Line 24: | Line 24: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Usage --> | </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 ...