Wget: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
= Usage = | = Usage = | ||
<blockquote> | <blockquote> | ||
common flags | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
wget \ | wget \ | ||
Line 23: | 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 ...