wget
Download files from the Web. Supports HTTP, HTTPS, and FTP. See also: `wcurl`, `curl`.
More info →Options (7)
-O, --output-documentbooleanDownload the contents of a URL to a file (named "bar" in this case)
wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}booleanDownload a single web page and all its resources with 3-second intervals between requests (scripts, stylesheets, images, etc.)
wget {{[-pkw|--page-requisites --convert-links --wait]}} 3 {{https://example.com/some_page.html}}booleanDownload all listed files within a directory and its sub-directories (does not download embedded page elements)
wget {{[-mnp|--mirror --no-parent]}} {{https://example.com/some_path/}}-t, --triesbooleanLimit the download speed and the number of connection retries
wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/some_path/}}-c, --continuebooleanContinue an incomplete download
wget {{[-c|--continue]}} {{https://example.com}}-P, --directory-prefixbooleanDownload all URLs stored in a text file to a specific directory
wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{path/to/URLs.txt}}-i, --input-filebooleanDownload all URLs stored in a text file to a specific directory
wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{path/to/URLs.txt}}Examples (8)
Download the contents of a URL to a file (named "foo" in this case)
wget https://example.com/fooDownload the contents of a URL to a file (named "bar" in this case)
wget [-O|--output-document] bar https://example.com/fooDownload a single web page and all its resources with 3-second intervals between requests (scripts, stylesheets, images, etc.)
wget [-pkw|--page-requisites --convert-links --wait] 3 https://example.com/some_page.htmlDownload all listed files within a directory and its sub-directories (does not download embedded page elements)
wget [-mnp|--mirror --no-parent] https://example.com/some_path/Limit the download speed and the number of connection retries
wget --limit-rate 300k [-t|--tries] 100 https://example.com/some_path/Download a file from an HTTP server using Basic Auth (also works for FTP)
wget --user username --password password https://example.comContinue an incomplete download
wget [-c|--continue] https://example.comDownload all URLs stored in a text file to a specific directory
wget [-P|--directory-prefix] path/to/directory [-i|--input-file] path/to/URLs.txt