介绍: wget是Linux中的一个下载文件的工具
    查看帮助手册

    1. wget --help
    1. GNU Wget 1.14,非交互式的网络文件下载工具。
    2. 用法: wget [选项]... [URL]...
    3. 长选项所必须的参数在使用短选项时也是必须的。
    4. 启动:
    5. -V, --version 显示 Wget 的版本信息并退出。
    6. -h, --help 打印此帮助。
    7. -b, --background 启动后转入后台。
    8. -e, --execute=COMMAND 运行一个“.wgetrc”风格的命令。
    9. 日志和输入文件:
    10. -o, --output-file=FILE 将日志信息写入 FILE
    11. -a, --append-output=FILE 将信息添加至 FILE
    12. -d, --debug 打印大量调试信息。
    13. -q, --quiet 安静模式 (无信息输出)。
    14. -v, --verbose 详尽的输出 (此为默认值)。
    15. -nv, --no-verbose 关闭详尽输出,但不进入安静模式。
    16. --report-speed=TYPE Output bandwidth as TYPE. TYPE can be bits.
    17. -i, --input-file=FILE 下载本地或外部 FILE 中的 URLs
    18. -F, --force-html 把输入文件当成 HTML 文件。
    19. -B, --base=URL 解析与 URL 相关的
    20. HTML 输入文件 (由 -i -F 选项指定)。
    21. --config=FILE Specify config file to use.
    22. 下载:
    23. -t, --tries=NUMBER 设置重试次数为 NUMBER (0 代表无限制)。
    24. --retry-connrefused 即使拒绝连接也是重试。
    25. -O, --output-document=FILE 将文档写入 FILE
    26. -nc, --no-clobber skip downloads that would download to
    27. existing files (overwriting them).
    28. -c, --continue 断点续传下载文件。
    29. --progress=TYPE 选择进度条类型。
    30. -N, --timestamping 只获取比本地文件新的文件。
    31. --no-use-server-timestamps 不用服务器上的时间戳来设置本地文件。
    32. -S, --server-response 打印服务器响应。
    33. --spider 不下载任何文件。
    34. -T, --timeout=SECONDS 将所有超时设为 SECONDS 秒。
    35. --dns-timeout=SECS 设置 DNS 查寻超时为 SECS 秒。
    36. --connect-timeout=SECS 设置连接超时为 SECS 秒。
    37. --read-timeout=SECS 设置读取超时为 SECS 秒。
    38. -w, --wait=SECONDS 等待间隔为 SECONDS 秒。
    39. --waitretry=SECONDS 在获取文件的重试期间等待 1..SECONDS 秒。
    40. --random-wait 获取多个文件时,每次随机等待间隔
    41. 0.5*WAIT...1.5*WAIT 秒。
    42. --no-proxy 禁止使用代理。
    43. -Q, --quota=NUMBER 设置获取配额为 NUMBER 字节。
    44. --bind-address=ADDRESS 绑定至本地主机上的 ADDRESS (主机名或是 IP)。
    45. --limit-rate=RATE 限制下载速率为 RATE
    46. --no-dns-cache 关闭 DNS 查寻缓存。
    47. --restrict-file-names=OS 限定文件名中的字符为 OS 允许的字符。
    48. --ignore-case 匹配文件/目录时忽略大小写。
    49. -4, --inet4-only 仅连接至 IPv4 地址。
    50. -6, --inet6-only 仅连接至 IPv6 地址。
    51. --prefer-family=FAMILY 首先连接至指定协议的地址
    52. FAMILY IPv6IPv4 或是 none
    53. --user=USER ftp http 的用户名均设置为 USER
    54. --password=PASS ftp http 的密码均设置为 PASS
    55. --ask-password 提示输入密码。
    56. --no-iri 关闭 IRI 支持。
    57. --local-encoding=ENC IRI (国际化资源标识符) 使用 ENC 作为本地编码。
    58. --remote-encoding=ENC 使用 ENC 作为默认远程编码。
    59. --unlink remove file before clobber.
    60. 目录:
    61. -nd, --no-directories 不创建目录。
    62. -x, --force-directories 强制创建目录。
    63. -nH, --no-host-directories 不要创建主目录。
    64. --protocol-directories 在目录中使用协议名称。
    65. -P, --directory-prefix=PREFIX PREFIX/... 保存文件
    66. --cut-dirs=NUMBER 忽略远程目录中 NUMBER 个目录层。
    67. HTTP 选项:
    68. --http-user=USER 设置 http 用户名为 USER
    69. --http-password=PASS 设置 http 密码为 PASS
    70. --no-cache 不在服务器上缓存数据。
    71. --default-page=NAME 改变默认页
    72. (默认页通常是“index.html”)。
    73. -E, --adjust-extension 以合适的扩展名保存 HTML/CSS 文档。
    74. --ignore-length 忽略头部的‘Content-Length’区域。
    75. --header=STRING 在头部插入 STRING
    76. --max-redirect 每页所允许的最大重定向。
    77. --proxy-user=USER 使用 USER 作为代理用户名。
    78. --proxy-password=PASS 使用 PASS 作为代理密码。
    79. --referer=URL HTTP 请求头包含‘Referer: URL’。
    80. --save-headers HTTP 头保存至文件。
    81. -U, --user-agent=AGENT 标识为 AGENT 而不是 Wget/VERSION
    82. --no-http-keep-alive 禁用 HTTP keep-alive (永久连接)。
    83. --no-cookies 不使用 cookies
    84. --load-cookies=FILE 会话开始前从 FILE 中载入 cookies
    85. --save-cookies=FILE 会话结束后保存 cookies FILE
    86. --keep-session-cookies 载入并保存会话 (非永久) cookies
    87. --post-data=STRING 使用 POST 方式;把 STRING 作为数据发送。
    88. --post-file=FILE 使用 POST 方式;发送 FILE 内容。
    89. --content-disposition 当选中本地文件名时
    90. 允许 Content-Disposition 头部 (尚在实验)。
    91. --content-on-error output the received content on server errors.
    92. --auth-no-challenge 发送不含服务器询问的首次等待
    93. 的基本 HTTP 验证信息。
    94. HTTPS (SSL/TLS) 选项:
    95. --secure-protocol=PR choose secure protocol, one of auto, SSLv2,
    96. SSLv3, TLSv1, TLSv1_1 and TLSv1_2.
    97. --no-check-certificate 不要验证服务器的证书。
    98. --certificate=FILE 客户端证书文件。
    99. --certificate-type=TYPE 客户端证书类型,PEM DER
    100. --private-key=FILE 私钥文件。
    101. --private-key-type=TYPE 私钥文件类型,PEM DER
    102. --ca-certificate=FILE 带有一组 CA 认证的文件。
    103. --ca-directory=DIR 保存 CA 认证的哈希列表的目录。
    104. --random-file=FILE 带有生成 SSL PRNG 的随机数据的文件。
    105. --egd-file=FILE 用于命名带有随机数据的 EGD 套接字的文件。
    106. FTP 选项:
    107. --ftp-user=USER 设置 ftp 用户名为 USER
    108. --ftp-password=PASS 设置 ftp 密码为 PASS
    109. --no-remove-listing 不要删除‘.listing’文件。
    110. --no-glob 不在 FTP 文件名中使用通配符展开。
    111. --no-passive-ftp 禁用“passive”传输模式。
    112. --preserve-permissions 保留远程文件的权限。
    113. --retr-symlinks 递归目录时,获取链接的文件 (而非目录)。
    114. WARC options:
    115. --warc-file=FILENAME save request/response data to a .warc.gz file.
    116. --warc-header=STRING insert STRING into the warcinfo record.
    117. --warc-max-size=NUMBER set maximum size of WARC files to NUMBER.
    118. --warc-cdx write CDX index files.
    119. --warc-dedup=FILENAME do not store records listed in this CDX file.
    120. --no-warc-compression do not compress WARC files with GZIP.
    121. --no-warc-digests do not calculate SHA1 digests.
    122. --no-warc-keep-log do not store the log file in a WARC record.
    123. --warc-tempdir=DIRECTORY location for temporary files created by the
    124. WARC writer.
    125. 递归下载:
    126. -r, --recursive 指定递归下载。
    127. -l, --level=NUMBER 最大递归深度 (inf 0 代表无限制,即全部下载)。
    128. --delete-after 下载完成后删除本地文件。
    129. -k, --convert-links 让下载得到的 HTML CSS 中的链接指向本地文件。
    130. --backups=N before writing file X, rotate up to N backup files.
    131. -K, --backup-converted 在转换文件 X 前先将它备份为 X.orig
    132. -m, --mirror -N -r -l inf --no-remove-listing 的缩写形式。
    133. -p, --page-requisites 下载所有用于显示 HTML 页面的图片之类的元素。
    134. --strict-comments 用严格方式 (SGML) 处理 HTML 注释。
    135. 递归接受/拒绝:
    136. -A, --accept=LIST 逗号分隔的可接受的扩展名列表。
    137. -R, --reject=LIST 逗号分隔的要拒绝的扩展名列表。
    138. --accept-regex=REGEX regex matching accepted URLs.
    139. --reject-regex=REGEX regex matching rejected URLs.
    140. --regex-type=TYPE regex type (posix|pcre).
    141. -D, --domains=LIST 逗号分隔的可接受的域列表。
    142. --exclude-domains=LIST 逗号分隔的要拒绝的域列表。
    143. --follow-ftp 跟踪 HTML 文档中的 FTP 链接。
    144. --follow-tags=LIST 逗号分隔的跟踪的 HTML 标识列表。
    145. --ignore-tags=LIST 逗号分隔的忽略的 HTML 标识列表。
    146. -H, --span-hosts 递归时转向外部主机。
    147. -L, --relative 只跟踪有关系的链接。
    148. -I, --include-directories=LIST 允许目录的列表。
    149. --trust-server-names use the name specified by the redirection
    150. url last component.
    151. -X, --exclude-directories=LIST 排除目录的列表。
    152. -np, --no-parent 不追溯至父目录。