man.lsPlain-English help for Unix commands

wget Download files from the web

Downloads files over HTTP, HTTPS and FTP. It saves to disk by default, can resume a broken download, and can copy whole sites. It is not installed by default on macOS, where curl is the built-in tool.

Synopsis

wget [OPTION]... URL...

Common options

Option or formWhat it does
-O FILESave the download as FILE. Use -O - to write to the terminal (standard output)
-cContinue a partly downloaded file instead of starting again
-qQuiet mode: print nothing
-P DIRSave files into the folder DIR
-rDownload recursively, following links
-npNo parent: when downloading recursively, never go up to the parent folder
-i FILERead the list of URLs to download from FILE, one per line
--limit-rate=RATECap the download speed, for example --limit-rate=500k

Examples

Download a file into the current folder
wget https://example.com/files/report.pdf
Download under a different name
wget -O latest.tar.gz https://example.com/download/latest
Resume an interrupted download
wget -c https://example.com/files/big.iso
Download a list of URLs into a folder
wget -i urls.txt -P downloads
Print a page to the terminal instead of saving it
wget -qO- https://example.com
Copy one section of a site, without going up a level
wget -r -np https://example.com/docs/

Notes

See also

Last reviewed 2026-10-07.