Command format
wget [option] ... [URL] ...
Command parameters
Startup options
-V,--version
Print version Information
-H,--help
Printing Help information
Log and input file options
-O logfile,--output-file=logfile
Write log messages to logfile
-A logfile,--append-output=logfile
Append log messages to logfile
-D,--debug
Open debug output, print debug information
-Q,--quiet
Turn on quiet output, do not print any information
-V,--verbose
Open the details output, which is the default output
-NV,--no-verbose
Turns off the detail output, but does not wait for quiet output
-I. File,--input-file=file
Read URL from File
Download options
-T number,--tries=number
Set retry count, number 0 means infinite retry
-O file,--output-document=file
Write documents to File
-C,--continue
Endpoint Continuation
-S,--server-response
Response message for print server
--spider
Checks only if the resource exists and does not download the resource
-T seconds,--timeout=seconds
Setting Network Timeouts
--dns-timeout=seconds
Setting DNS Timeouts
--connect-timeout=seconds
Setting the connection timeout
--read-timeout=seconds
Set read-write timeout
--limit-rate=amount
Limit download speed
-Q,--quota=number
Set capacity limits for downloads
Instance
A) download a single file
wget Http://jsoup.org/packages/jsoup-1.8.1.jar
b) Download the file and specify the filename
Wget-o example.html http://www.example.com/
c) The URL specified in the download file
Wget-i Imglist.txt
d) Limit Download speed
wget--limit-rate 3K Http://jsoup.org/packages/jsoup-1.8.1.jar
e) Breakpoint Download
Wget-c Http://jsoup.org/packages/jsoup-1.8.1.jar
f) Determine if the resource exists
wget--spider Http://jsoup.org/packages/jsoup-1.8.1.jar
g) specify file to save directory
Wget-p/home/huey/downloads Http://jsoup.org/packages/jsoup-1.8.1.jar
Linux Commands-wget:the non-interactive Network Downloader