The use of wget in the shell

Source: Internet
Author: User

The use of Wget

-V Version Information

-H Help Information

-B Background Execution wget

-o filename put the record in the file filename

-a filename attaches the record to the file filename

-D Display Debug information

-Q No output download mode

-v Verbose screen output (default)

-NV Simple on-screen output

-I inputfiles read address list from text file

-F forcehtml Read the address list from within the HTML file


-t number number retry download (0 o'clock is unlimited)

-O Output document file write file to file

-nc not overwrite existing files

-C breakpoint is passed down

-N time timestamp. This parameter specifies that wget downloads only the updated files, that is, files that are the same length as the corresponding files in the local directory and the last modified date will not be downloaded.

-S Display server response

-T timeout time-out setting (in seconds)

-W Time Retry delay (per second)

-y Proxy=on/off whether to open proxy

-Q Quota=number Retry attempts


Directory:

-nd--no-directories does not establish a directory.

-X,--force-directories forces the work of directory creation.

-NH,--no-host-directories does not establish a host directory.

-P,--directory-prefix=prefix save the file to prefix/...

--cut-dirs=number ignores the directory component of number remote.

HTTP options:

--http-user=user set HTTP user as user.

--http0passwd=pass set the password for the HTTP user to PASS.

-C,--cache=on/off provides/shuts down the cache server data (normally provided).

--ignore-length Ignore ' content-length ' header field.

--proxy-user=user set user as the proxy user name.

--proxy-passwd=pass set the pass as the proxy password.

-S,--save-headers stores HTTP headers as files.

-U,--user-agent=agent uses agent instead of wget/version as identification code.

FTP options:

--retr-symlinks Retrieve the symbolic link of FTP.

-G,--glob=on/off turn file name globbing on ot off.

The--PASSIVE-FTP uses passive transfer mode.

Get back using a recursive method:

-R,--recursive like a fetch from the web-please use it carefully!.

-L,--level=number returns the maximum value of the hierarchy (0 unrestricted).

--delete-after Delete the downloaded file.

-K,--convert-links change not connected links become relevant.

-M,--mirror turns on the option to use for mapping.

-NR,--dont-remove-listing do not remove the '. Listing ' file.

Allow and deny options for recursive jobs:

-A,--accept=list list of allowed expansion items

. -R,--reject=list the list of expanded items that are rejected.

-D,--domains=list the list of allowed domains.

--exclude-domains=list List of domains rejected (separated by commas).

-L,--relative only follow the association link forward.

--FOLLOW-FTP follows the FTP link inside the HTML file.

-H,--span-hosts to the outside host when it starts to be handed back.

-I,--include-directories=list the list of allowed directories.

-X,--exclude-directories=list the list of excluded directories.

-NH,--no-host-lookup does not search the host through DNS.

-NP,--no-parent does not chase to the Origin directory.



This article is from the "Last Bus" blog, be sure to keep this source http://blxueyuan.blog.51cto.com/9673381/1955898

The use of wget in the shell

Related Article

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.