Commands
bash
wget -c https://site/big.iso # resume an interrupted download
wget -nv -P /downloads https://site/x # quiet, into a directory
wget -O - https://site/script.sh | less # to stdout (view without saving)
wget -i urls.txt # download a list of URLs from a file
wget --limit-rate=2m https://site/x # limit speed to 2 MB/s
wget -t5 --retry-connrefused https://site/x # persistent retries (a flaky network)
wget --header='Authorization: Bearer TOK' https://api/x # with a token
wget --user=u --password=p ftp://host/file
# mirror a site directory (watch the volume):
wget -r -np -k -p https://site/docs/ # recursive, no parent, fix links, +assets
wget -r -l2 -np https://site/ # limit depth with -l