Advertisement
Guest User

wget

a guest
Jun 26th, 2017
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.70 KB | None | 0 0
  1. GNU Wget 1.17.1, a non-interactive network retriever.
  2. Usage: wget [OPTION]... [URL]...
  3.  
  4. Mandatory arguments to long options are mandatory for short options too.
  5.  
  6. Startup:
  7. -V, --version display the version of Wget and exit
  8. -h, --help print this help
  9. -b, --background go to background after startup
  10. -e, --execute=COMMAND execute a `.wgetrc'-style command
  11.  
  12. Logging and input file:
  13. -o, --output-file=FILE log messages to FILE
  14. -a, --append-output=FILE append messages to FILE
  15. -d, --debug print lots of debugging information
  16. -q, --quiet quiet (no output)
  17. -v, --verbose be verbose (this is the default)
  18. -nv, --no-verbose turn off verboseness, without being quiet
  19. --report-speed=TYPE output bandwidth as TYPE. TYPE can be bits
  20. -i, --input-file=FILE download URLs found in local or external FILE
  21. -F, --force-html treat input file as HTML
  22. -B, --base=URL resolves HTML input-file links (-i -F)
  23. relative to URL
  24. --config=FILE specify config file to use
  25. --no-config do not read any config file
  26. --rejected-log=FILE log reasons for URL rejection to FILE
  27.  
  28. Download:
  29. -t, --tries=NUMBER set number of retries to NUMBER (0 unlimits)
  30. --retry-connrefused retry even if connection is refused
  31. -O, --output-document=FILE write documents to FILE
  32. -nc, --no-clobber skip downloads that would download to
  33. existing files (overwriting them)
  34. -c, --continue resume getting a partially-downloaded file
  35. --start-pos=OFFSET start downloading from zero-based position OFFSET
  36. --progress=TYPE select progress gauge type
  37. --show-progress display the progress bar in any verbosity mode
  38. -N, --timestamping don't re-retrieve files unless newer than
  39. local
  40. --no-if-modified-since don't use conditional if-modified-since get
  41. requests in timestamping mode
  42. --no-use-server-timestamps don't set the local file's timestamp by
  43. the one on the server
  44. -S, --server-response print server response
  45. --spider don't download anything
  46. -T, --timeout=SECONDS set all timeout values to SECONDS
  47. --dns-timeout=SECS set the DNS lookup timeout to SECS
  48. --connect-timeout=SECS set the connect timeout to SECS
  49. --read-timeout=SECS set the read timeout to SECS
  50. -w, --wait=SECONDS wait SECONDS between retrievals
  51. --waitretry=SECONDS wait 1..SECONDS between retries of a retrieval
  52. --random-wait wait from 0.5*WAIT...1.5*WAIT secs between retrievals
  53. --no-proxy explicitly turn off proxy
  54. -Q, --quota=NUMBER set retrieval quota to NUMBER
  55. --bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host
  56. --limit-rate=RATE limit download rate to RATE
  57. --no-dns-cache disable caching DNS lookups
  58. --restrict-file-names=OS restrict chars in file names to ones OS allows
  59. --ignore-case ignore case when matching files/directories
  60. -4, --inet4-only connect only to IPv4 addresses
  61. -6, --inet6-only connect only to IPv6 addresses
  62. --prefer-family=FAMILY connect first to addresses of specified family,
  63. one of IPv6, IPv4, or none
  64. --user=USER set both ftp and http user to USER
  65. --password=PASS set both ftp and http password to PASS
  66. --ask-password prompt for passwords
  67. --no-iri turn off IRI support
  68. --local-encoding=ENC use ENC as the local encoding for IRIs
  69. --remote-encoding=ENC use ENC as the default remote encoding
  70. --unlink remove file before clobber
  71.  
  72. Directories:
  73. -nd, --no-directories don't create directories
  74. -x, --force-directories force creation of directories
  75. -nH, --no-host-directories don't create host directories
  76. --protocol-directories use protocol name in directories
  77. -P, --directory-prefix=PREFIX save files to PREFIX/..
  78. --cut-dirs=NUMBER ignore NUMBER remote directory components
  79.  
  80. HTTP options:
  81. --http-user=USER set http user to USER
  82. --http-password=PASS set http password to PASS
  83. --no-cache disallow server-cached data
  84. --default-page=NAME change the default page name (normally
  85. this is 'index.html'.)
  86. -E, --adjust-extension save HTML/CSS documents with proper extensions
  87. --ignore-length ignore 'Content-Length' header field
  88. --header=STRING insert STRING among the headers
  89. --max-redirect maximum redirections allowed per page
  90. --proxy-user=USER set USER as proxy username
  91. --proxy-password=PASS set PASS as proxy password
  92. --referer=URL include 'Referer: URL' header in HTTP request
  93. --save-headers save the HTTP headers to file
  94. -U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION
  95. --no-http-keep-alive disable HTTP keep-alive (persistent connections)
  96. --no-cookies don't use cookies
  97. --load-cookies=FILE load cookies from FILE before session
  98. --save-cookies=FILE save cookies to FILE after session
  99. --keep-session-cookies load and save session (non-permanent) cookies
  100. --post-data=STRING use the POST method; send STRING as the data
  101. --post-file=FILE use the POST method; send contents of FILE
  102. --method=HTTPMethod use method "HTTPMethod" in the request
  103. --body-data=STRING send STRING as data. --method MUST be set
  104. --body-file=FILE send contents of FILE. --method MUST be set
  105. --content-disposition honor the Content-Disposition header when
  106. choosing local file names (EXPERIMENTAL)
  107. --content-on-error output the received content on server errors
  108. --auth-no-challenge send Basic HTTP authentication information
  109. without first waiting for the server's
  110. challenge
  111.  
  112. HTTPS (SSL/TLS) options:
  113. --secure-protocol=PR choose secure protocol, one of auto, SSLv2,
  114. SSLv3, TLSv1 and PFS
  115. --https-only only follow secure HTTPS links
  116. --no-check-certificate don't validate the server's certificate
  117. --certificate=FILE client certificate file
  118. --certificate-type=TYPE client certificate type, PEM or DER
  119. --private-key=FILE private key file
  120. --private-key-type=TYPE private key type, PEM or DER
  121. --ca-certificate=FILE file with the bundle of CAs
  122. --ca-directory=DIR directory where hash list of CAs is stored
  123. --crl-file=FILE file with bundle of CRLs
  124. --random-file=FILE file with random data for seeding the SSL PRNG
  125. --egd-file=FILE file naming the EGD socket with random data
  126.  
  127. HSTS options:
  128. --no-hsts disable HSTS
  129. --hsts-file path of HSTS database (will override default)
  130.  
  131. FTP options:
  132. --ftp-user=USER set ftp user to USER
  133. --ftp-password=PASS set ftp password to PASS
  134. --no-remove-listing don't remove '.listing' files
  135. --no-glob turn off FTP file name globbing
  136. --no-passive-ftp disable the "passive" transfer mode
  137. --preserve-permissions preserve remote file permissions
  138. --retr-symlinks when recursing, get linked-to files (not dir)
  139.  
  140. FTPS options:
  141. --ftps-implicit use implicit FTPS (default port is 990)
  142. --ftps-resume-ssl resume the SSL/TLS session started in the control connection when
  143. opening a data connection
  144. --ftps-clear-data-connection cipher the control channel only; all the data will be in plaintext
  145. --ftps-fallback-to-ftp fall back to FTP if FTPS is not supported in the target server
  146. WARC options:
  147. --warc-file=FILENAME save request/response data to a .warc.gz file
  148. --warc-header=STRING insert STRING into the warcinfo record
  149. --warc-max-size=NUMBER set maximum size of WARC files to NUMBER
  150. --warc-cdx write CDX index files
  151. --warc-dedup=FILENAME do not store records listed in this CDX file
  152. --no-warc-compression do not compress WARC files with GZIP
  153. --no-warc-digests do not calculate SHA1 digests
  154. --no-warc-keep-log do not store the log file in a WARC record
  155. --warc-tempdir=DIRECTORY location for temporary files created by the
  156. WARC writer
  157.  
  158. Recursive download:
  159. -r, --recursive specify recursive download
  160. -l, --level=NUMBER maximum recursion depth (inf or 0 for infinite)
  161. --delete-after delete files locally after downloading them
  162. -k, --convert-links make links in downloaded HTML or CSS point to
  163. local files
  164. --convert-file-only convert the file part of the URLs only (usually known as the basename)
  165. --backups=N before writing file X, rotate up to N backup files
  166. -K, --backup-converted before converting file X, back up as X.orig
  167. -m, --mirror shortcut for -N -r -l inf --no-remove-listing
  168. -p, --page-requisites get all images, etc. needed to display HTML page
  169. --strict-comments turn on strict (SGML) handling of HTML comments
  170.  
  171. Recursive accept/reject:
  172. -A, --accept=LIST comma-separated list of accepted extensions
  173. -R, --reject=LIST comma-separated list of rejected extensions
  174. --accept-regex=REGEX regex matching accepted URLs
  175. --reject-regex=REGEX regex matching rejected URLs
  176. --regex-type=TYPE regex type (posix|pcre)
  177. -D, --domains=LIST comma-separated list of accepted domains
  178. --exclude-domains=LIST comma-separated list of rejected domains
  179. --follow-ftp follow FTP links from HTML documents
  180. --follow-tags=LIST comma-separated list of followed HTML tags
  181. --ignore-tags=LIST comma-separated list of ignored HTML tags
  182. -H, --span-hosts go to foreign hosts when recursive
  183. -L, --relative follow relative links only
  184. -I, --include-directories=LIST list of allowed directories
  185. --trust-server-names use the name specified by the redirection
  186. URL's last component
  187. -X, --exclude-directories=LIST list of excluded directories
  188. -np, --no-parent don't ascend to the parent directory
  189.  
  190. Mail bug reports and suggestions to <bug-wget@gnu.org>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement