Wget
Command syntax
wget [option] [URL]
Download sequence of files using Bash range syntax
wget http://example.com/file_{1..4}.webp
Useful options
Option | Description |
---|---|
--continue (-c for short) | Resume a previously interrupted download. |
--debug | Display request and response headers. |
--header="name: value" | Add or update a request header. |
-l depth | Maximum depth level for recursion, inf can be used for unlimited. |
-m | Turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. |
--no-parent | Do not ascend to the parent directory when retrieving recursively. Only the files below a certain hierarchy will be downloaded. |
--no-proxy | Don't use proxies, even if the appropriate *_proxy environment variable is defined. |
-O fileName | Save target as fileName. If - is used as argument, documents will be printed to standard output. |
-r | Turn on recursive retrieving. The default maximum depth is 5. |
--show-progress | Display the progress bar (in any verbosity). |
--user=usr --password=pwd | Specify the username and password to be used for both FTP and HTTP authentication. |