Linux

Where Is the Wget Config File?

.wgetrc location in home with retries, robots and proxy defaults on Linux.

Last updated

Wget reads defaults from .wgetrc in your home directory plus system settings in /etc/wgetrc, covering retries, timeouts, robots handling and proxies. User values win over system ones.

Recursive mirror flags live happily here instead of endless command lines. Syntax errors warn loudly on every run, pointing at the bad line.

Where Wget stores this, by platform

Linux
~/.wgetrc

Key=value settings like tries, timeout and use_proxy. System defaults sit in /etc/wgetrc underneath. Copy .wgetrc to migrate retry and proxy behavior between machines.

Frequently asked questions

How do I make Wget retry forever?

Set tries to 0 in .wgetrc above. Pair with timeout values so hung servers do not stall scripts silently.

Where do Wget proxy settings go?

As use_proxy and proxy variables in the files above. Environment variables override the files per session.

Notice an outdated path? Let us know.