wget 的用法
-v 版本信息
-h 帮助信息
-b 后台执行wget
-o filename 把记录放在文件filename
-a filename 把记录附加在文件filename
-d 显示调试信息
-q 无输出下载方式
-v 详细的屏幕输出(默认)
-nv 简单的屏幕输出
-i inputfiles 从文本文件内读取地址列表
-f forcehtml 从html文件内读取地址列表
-t number number次重试下载(0时为无限次)
-o output document file 写文件到文件
-nc 不覆盖已有的文件
-c 断点下传
-n 时间时间戳。该参数指定wget只下载更新的文件,也就是说,与本地目录中的对应文件的长度和最后修改日期一样的文件将不被下载。
-s 显示服务器响应
-t timeout 超时时间设置(单位秒)
-w time 重试延时(单位秒)
-y proxy=on/off 是否打开代理
-q quota=number 重试次数
目录:
-nd --no-directories 不建立目录.
-x, --force-directories 强制进行目录建立的工作.
-nh, --no-host-directories 不建立主机的目录.
-p, --directory-prefix=prefix 把档案存到 prefix/...
--cut-dirs=number 忽略 number 个远端的目录元件.
http 选项:
--http-user=user 设 http 使用者为 user.
--http0passwd=pass 设 http 使用者的密码为 pass.
-c, --cache=on/off 提供/关闭快取伺服器资料 (正常情况为提供).
--ignore-length 忽略 `content-length' 标头栏位.
--proxy-user=user 设 user 为 proxy 使用者名称.
--proxy-passwd=pass 设 pass 为 proxy 密码.
-s, --save-headers 储存 http 标头成为档案.
-u, --user-agent=agent 使用 agent 取代 wget/version 作为识别代号.
ftp 选项:
--retr-symlinks 取回 ftp 的象徵连结.
-g, --glob=on/off turn file name globbing on ot off.
--passive-ftp 使用 "passive" 传输模式.
使用递回方式的取回:
-r, --recursive 像是吸入 web 的取回 -- 请小心使用!.
-l, --level=number 递回层次的最大值 (0 不限制).
--delete-after 删除下载完毕的档案.
-k, --convert-links 改变没有关连的连结成为有关连.
-m, --mirror 开启适合用来映射的选项.
-nr, --dont-remove-listing 不要移除 `.listing' 档.
递回式作业的允许与拒绝选项:
-a, --accept=list 允许的扩充项目的列表
. -r, --reject=list 拒绝的扩充项目的列表.
-d, --domains=list 允许的网域列表.
--exclude-domains=list 拒绝的网域列表 (使用逗号来分隔).
-l, --relative 只跟随关联连结前进.
--follow-ftp 跟随 html 文件里面的 ftp 连结.
-h, --span-hosts 当开始递回时便到外面的主机.
-i, --include-directories=list 允许的目录列表.
-x, --exclude-directories=list 排除的目录列表.
-nh, --no-host-lookup 不透过 dns 查寻主机.
-np, --no-parent 不追朔到起源目录.
wget -t0 -c -nh -np -b -m -p /localdir http://freesoft.online.sh.cn/mirrors/ftp.redhat.com -o wget.log 今天用wget一看那么多的命令,先把它翻译了一下,再到外边搜到一些相关内容.
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器