wget
wget: download a file from the internet.
Synopsis
wget [-q] [-O file] url
Description
wget downloads what url names, through the computer’s internet card, following redirects, into a file named as the URL’s last part (index.html when it has none). A URL without a scheme is http://’s. It says what it does on standard error.
The card reaches only the public internet: never the server’s own machine or network (the server’s settings may allow more, or less).
Options
- -q
- Says nothing.
- -O file
- Saves to file instead (-: standard output).
Exit status
0 when it saved the file; 2 for bad usage; 3 when the file can’t be written; 4 for a network failure (refused, an unknown host, timed out); 8 when the server answered with an error (4xx, 5xx).
Examples
wget https://example.com/
wget -O notes.txt https://example.com/notes
Notes
GNU wget’s recursion, retries and resuming (-r, -t, -c) are not supported.
See also
curl(1)