Linux Commands-wget:the non-interactive Network Downloader

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.