Brief analysis on installing wget and wget commands on aix

Source: Internet
Author: User
Aix to install wget and wget command to IBM's website-ivh wget-1.9.1- 1. install aix5.1.ppc. rpm. Completed... wget is a command line non-interactive Web download tool. it supports HTTP, HTTPS, and FTP protocols, and supports downloading through proxy. When using the wget command, the simplest method is to directly download the file to the local device in the following format. Wget (1) use common parameters of wget command (applicable to connection to HTTP, HTTPS, and FTP ). Common parameter: Ø-B: Enter the background operation after startup. -O = <文件> : Write log messages to a specified file. -A = <文件> : Append the log message to the end of the specified file. -D: print the debugging output. -Q: Quiet mode (no output ). -V: detailed output mode (default ). -Nv: disable the detailed output mode, but do not enter the quiet mode. -I = <文件> : Download the URL found in the specified file. -F: process the input file in HTML format. -B = : When you use the-F-I File option, add the specified URL before the relative link. -T = <次数> : Configure the number of retries (0 indicates unlimited ). -- Retry-connrefused: Try again even if the connection is rejected. -O = <文件> : Write data to this file. -Nc: do not change existing files or use the. # (#) method after the file name to write new files. -C: continue to receive some downloaded files. -- Progress = mode: indicates the download progress. -N: the remote file will not be retrieved unless it is newer. -S: displays the server response message. -- Spider: No data is downloaded. -T = <秒数> : Set the time-out seconds for data reading. Ø-w = <秒数> : Number of seconds to wait for receiving different files. -- Waitretry = <秒数> : The number of seconds to wait for each retry (1 second by default ). -- Random-wait: the number of seconds between receiving different files (0 s by default ). -- Proxy = : Enables or disables proxy servers. -Q = <大小> : Configure the data receiving quota. -- Bind-address = <地址> : Use the specified address (host name or IP address) of the local machine to connect. -- Limit-rate = <速率> : Limit the download speed. -- Dns-cache = : Whether to disable searching for DNS instances in the cache. (2) use the wget command for HTTP server parameters. Wget http: // IP address (or FQDN)/file name parameter: Ø -- http-user = <用户> : Specifies the HTTP user name. -- Http-passwd = <密码> : Specifies the HTTP user password. -C = : Specifies whether to use the data in the high-speed cache on the server (which is used by default ). -E: add the. HTML extension file name to all text/html files of the MIME type. -- Ignore-length: ignore the Content-Length header field. -- Header = <字符串> : Add a specified string to the file header. -- Proxy-user = <用户> : Specifies the proxy server user name. -- Proxy-passwd = <密码> : Specifies the proxy server user password. -- Referer = : Contains the "Referer: URL" header in the HTTP request. -S: saves the HTTP header to a file. -U = AGENT: indicates the AGENT instead of Wget/VERSION. -- No-http-keep-alive: disable HTTP keep-alive (persistent connection ). -- Cookies = on | off: Specifies whether to use cookies. -- Load-cookies = <文件> : The Cookie is loaded into the specified file before the session starts. -- Save-cookies = <文件> : After the session ends, save the Cookie to the specified file. -- Post-data = <字符串> : Use the POST method to send the specified string. -- Post-file = <文件> : Use the POST method to send the content in the specified file. (3) use the wget command for HTTPS server parameters. Wget https: // IP address (or FQDN)/file name parameter: Ø -- sslcertfile = <文件> : Optional client segment certificate. -- Sslcertkey = <密钥文件> : The "key file" available for this certificate ". -- Egd-file = <文件> : EGD Socket file name. -- Sslcadir = <目录> : The Directory where the CA hash is located. -- Sslcafile = <文件> : Contains CA files. -- Sslcerttype = <0 | 1>: Client-Cert type, where 0 = PEM (default)/1 = ASN1 (DER ). -- Sslcheckcert = <0 | 1>: check the server certificate based on the provided CA. -- Sslprotocol = <0 | 1>: Select SSL protocol, 0 = automatic, 1 = SSLv2, 2 = SSLv3, 3 = TLSv1. (4) Use the wget command to set FTP server parameters. Wget ftp: // IP address (or FQDN)/file name parameter: Ø-nr: Do not delete the ". listing" file. -G : Specifies whether to expand the file name with wildcards. -- Passive-ftp: use passive mode. -- Retr-symlinks: download the file indicated by the link in recursive mode. -R: Recursive download. Ø-l = <数字> : Specifies the maximum recursive depth. 0 indicates no limit. -- Delete-after: specifies the file to be deleted after the download. -K: converts an absolute link to a relative link. -K: back up file X to X. orig before converting file X. -M: equivalent to-r-N-l 0-nr. -P: download all the files required to display the complete webpage, such. -- Strict-comments: enable the strict processing option for HTML remarks (SGML. -A = <列表> : List of accepted file styles, separated by commas. -R = <列表> : List of excluded file styles, separated by commas. -D = <列表> : List of accepted domains, separated by commas. -- Exclude-domains = <列表> : List of excluded domains, separated by commas. -- Follow-ftp: follows the FTP link in the HTML file. -- Follow-tags = <列表> : HTML tags to be followed, separated by commas. -G = <列表> : HTML tags to be ignored, separated by commas. -H: You can access other hosts after recursion. -L: only follows the relative link. -I = <列表> : List of directories to be downloaded. -X = <列表> : List of directories to be excluded. -Np: do not search for upper-level directories.
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.