wget flags & options

-O

Write output to a specific file.

wget -O output.html https://example.com
wget -O - https://example.com/api/data

-q, --quiet

Suppress all output.

wget -q https://example.com/file.tar.gz

-r, --recursive

Download recursively, following links.

wget -r https://example.com/docs/

-c, --continue

Resume a partially downloaded file.

wget -c https://example.com/large-file.iso

-b, --background

Go to background immediately after starting.

wget -b https://example.com/large-file.iso

-P

Set the directory prefix where files are saved.

wget -P /tmp/downloads https://example.com/file.tar.gz

--no-check-certificate

Skip TLS certificate verification.

wget --no-check-certificate https://self-signed.example.com/file

--limit-rate

Limit download speed.

wget --limit-rate=1m https://example.com/large-file.iso

--mirror

Mirror a website. Shortcut for -r -N -l inf --no-remove-listing.

wget --mirror https://example.com

--user-agent

Set the User-Agent header string.

wget --user-agent="Mozilla/5.0" https://example.com

-i

Read URLs from a file, one per line.

wget -i urls.txt

--header

Add a custom HTTP header.

wget --header="Authorization: Bearer TOKEN" https://api.example.com/data