Lists and downloads of various wget options

Source: Internet
Author: User

Wget option category list
"Start
-V, -- version: displays the wget version and exits.
-H, -- help print syntax help
-B, -- after the background is started, it is transferred to the background for execution.
-E, -- execute = COMMAND: execute the COMMAND in the '. wgetrc' format. For the wgetrc format, see/etc/wgetrc or ~ /. Wgetrc
"Record and input file
-O, -- output-file = FILE: Write the record to the FILE.
-A, -- append-output = FILE: append the record to the FILE.
-D, -- debug print debugging output
-Q, -- quiet mode (no output)
-V, -- verbose lengthy mode (this is the default setting)
-Nv, -- non-verbose turn off the lengthy mode, but not the quiet mode
-I, -- input-file = FILE: the URL that appears when the FILE is downloaded.
-F, -- force-html treats the input file as an HTML file
-B, -- base = URL uses the URL as the prefix of the relative link in the file specified by the-F-I Parameter
-- Sslcertfile = FILE: Optional client certificate
-- Sslcertkey = KEYFILE the KEYFILE of the client certificate is optional.
-- Egd-file = FILE specifies the file name of the EGD socket.
"Download
-- Bind-address = ADDRESS specifies the local address (host name or ip address, used when there are multiple local IP addresses or names)
-T, -- tries = NUMBER sets the maximum NUMBER of attempts to connect (0 indicates no limit ).
-O -- output-document = FILE: Write the document to the FILE.
-Nc, -- no-clobber do not overwrite existing files or use the. # prefix
-C, -- continue, and then download the files that have not been downloaded
-- Progress = TYPE: set the process bar flag
-N, -- timestamping
-S, -- server-response print the server response
-- Spider does not download anything
-T, -- timeout = SECONDS: set the number of SECONDS for response timeout.
-W, -- wait = SECONDS: the interval between two attempts is SECONDS.
-- Waitretry = waiting for 1... SECONDS between reconnections
-- Random-wait waits for 0 seconds between downloads... 2 * WAIT
-Y, -- proxy = on/off open or close the proxy
-Q, -- quota = NUMBER: Set the download capacity limit.
-- Limit-rate = RATE: Specifies the download rate.
"Directory
-Nd -- no-directories
-X, -- force-directories force Directory Creation
-NH, -- no-host-directories do not create the host directory
-P, -- directory-prefix = PREFIX: save the file to the directory PREFIX /...
-- Cut-dirs = NUMBER ignore the remote directory of the NUMBER layer
"HTTP OPTIONS
-- Http-user = USER: Set the http user name to user.
-- Http-passwd = PASS: Set the http password to PASS.
-C, -- cache = on/off allow/Do Not Allow server-side data caching (generally allow ).
-E, -- html-extension: Save all text/html files with the. html extension
-- Ignore-length ignore the 'content-length' header field
-- Header = STRING insert STRING in headers
-- Proxy-user = USER: Set the proxy username to USER.
-- Proxy-passwd = PASS: Set the proxy password to PASS
-- Referer = the URL contains the 'Referer' header in the HTTP request.
-S, -- save-headers save the HTTP header to the file
-U, -- user-agent = AGENT: Set the proxy name to AGENT instead of Wget/VERSION.
-- No-http-keep-alive disable the HTTP activity Link (permanent link ).
-- Cookies = off do not use cookies.
-- Load-cookies = FILE: load the cookie from the FILE before starting the session
-- Save-cookies = FILE: saves cookies to the FILE after the session ends.
"FTP options
-Nr, -- dont-remove-listing: Do not remove the '. listing' file.
-G, -- glob = on/off enable or disable the globbing mechanism of the file name
-- Passive-ftp uses passive transmission mode (default ).
-- Active-ftp active Transmission Mode
-- Retr-symlinks: recursively points the link to a file instead of a directory)
"Recursive download
-R, -- recursive download-use with caution!
-L, -- level = maximum recursive depth of NUMBER (inf or 0 indicates infinity ).
-- Delete-after: Partial Deletion of objects after completion
-K, -- convert-links converts non-relative links to relative links
-K, -- backup-converted: Back up the file to X. orig before converting file X
-M, -- mirror is equivalent to-r-N-l inf-nr.
-P, -- page-requisites download and display all images of HTML files
"Include and exclude (accept/reject) in recursive download)
-A, -- accept = list a semicolon-separated LIST of accepted extensions
-R, -- reject = LIST a semicolon-separated LIST of unacceptable extensions
-D, -- domains = LIST the LIST of accepted domains separated by semicolons
-- Exclude-domains = LIST a semicolon-separated LIST of unacceptable domains
-- Follow-ftp: Tracking FTP links in HTML documents
-- Follow-tags = LIST a semicolon-separated LIST of HTML tags to be tracked
-G, -- ignore-tags = LIST semicolon-separated LIST of ignored HTML tags
-H, -- span-hosts is recursively transferred to the external host
-L, -- relative only traces relative links
-I, -- include-directories = LIST of allowed directories
-X, -- exclude-directories = LIST of excluded directories
-Np, -- no-parent should not be traced back to the parent directory
Local download

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.