Name

wget

Synopsis

wget [options] [urls]

Perform noninteractive file downloads from the Web. wget works in the background and can be used to set up and run a download without the user having to remain logged on. wget supports HTTP, HTTPS, and FTP, as well as downloads through HTTP proxies. wget uses a global startup file that you may find at /etc/wgetrc or /usr/local/etc/wgetrc. In addition, users can define their own $HOME/.wgetrc files.

Options

−4, --inet4-only

Force connection to IPv4 hosts only.

−6, --inet6-only

Force connection to IPv6 hosts only.

-a logfile, --append-output=logfile

Append output messages to logfile, instead of overwriting the contents as -o does. If logfile doesn’t exist, create it.

-A acclist, --accept=acclist

Specify a comma-separated list of filename suffixes or patterns to accept.

-b, --background

Go into the background immediately after startup, writing output to the file specified with -o or to wget-log.

-B url, --base=url

Used with -F to prepend the specified URL to relative links in the input file specified with -i.

--bind-address=address

When making client TCP/IP connections, bind( ) to the specified local address, which can be specified as a hostname or IP address. Useful if your system is bound to multiple IP addresses.

-c, --continue

Continue getting a partially downloaded file. Affects the restarting of downloads from an earlier invocation of wget. Works only with FTP servers and HTTP servers that support the Range header.

--connect-timeout=seconds

Set the timeout ...

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.