Skip to content

wget常用命令介绍

wget 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。

  1. $ wget -r -np -nd http://www.pkphp.com/packages/这条命令可以下载 http://www.pkphp.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd表示不在本机重新创建目录结构。
  2. $ wget -r -np -nd --accept=iso http://www.pkphp.com/centos-5/i386/与上一条命令相似,但多加了一个 --accept=iso 选项,这指示 wget 仅下载 i386 目录中所有扩展名为 iso 的文件。你也可以指定多个扩展名,只需用逗号分隔即可。
  3. $ wget -i filename.txt此命令常用于批量下载的情形,把所有需要下载文件的地址放到 filename.txt 中,然后 wget 就会自动为你下载所有文件了。
  4. $ wget -c http://www.pkphp.com/really-big-file.iso这里所指定的 -c 选项的作用为断点续传。
  5. $ wget -m -k (-H) http://www.pkphp.com/该命令可用来镜像一个网站,wget 将对链接进行转换。如果网站中的图像是放在另外的站点,那么可以使用 -H 选项。
http://www.pkphp.com/(2)wget(3)wget php(22)php wget()(1)PHP wget(23)wget 介绍(2)wget 图片 扩展名(1)wget图片(2)wget php site(2)php wget result(1)wget -t 1 --timeout=0 -O - -q(1)wget 下载 character(1)php iconv 错误 Detected an illegal character in input string(1)wget 图片(2)wget 圖片(2)

Share in Google Reader Share in Google Reader 分享到 FriendFeed 分享到 FriendFeed 推荐到豆瓣 推荐到豆瓣 分享到 Twitter 分享到 Twitter

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

无觅相关文章插件,快速提升流量