Skip to main content

Wget

Command syntax

wget [option] [URL]

Download sequence of files using Bash range syntax

wget http://example.com/file_{1..4}.webp

Useful options

OptionDescription
--continue (-c for short)Resume a previously interrupted download.
--debugDisplay request and response headers.
--header="name: value"Add or update a request header.
-l depthMaximum depth level for recursion, inf can be used for unlimited.
-mTurns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings.
--no-parentDo not ascend to the parent directory when retrieving recursively. Only the files below a certain hierarchy will be downloaded.
--no-proxyDon't use proxies, even if the appropriate *_proxy environment variable is defined.
-O fileNameSave target as fileName. If - is used as argument, documents will be printed to standard output.
-rTurn on recursive retrieving. The default maximum depth is 5.
--show-progressDisplay the progress bar (in any verbosity).
--user=usr --password=pwdSpecify the username and password to be used for both FTP and HTTP authentication.