Skip to content
Back to skills

Blog

ASecurity

[wget][wget] 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。 >$ wget -r -np -nd http://example.com/packages/ 这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd 表示不在本机重新创建目录结构。 >$ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/ 与上一条命令相似,但多加了一个 --accept=iso 选项,这指示 wget 仅下载 i386 目录中所有扩展名为 iso 的文件。你也可以指定多个扩展名,只需用逗号分隔即可。 >$ wget -i filename.txt 此命令常用于批量下载的情形,把所有需要下载文件的地址放到 filename.txt 中,然后 wget 就会自动为你下载所有文件了。 >$ wget -c http:/...

  • 308 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
development

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro scans all 21 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add erasin/notes --skill blog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Blog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erasin-blog/badge)](https://www.skillsdirectory.com/skills/erasin-blog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
#wget 使用常用技巧


[wget][wget] 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。
	
>$ wget -r -np -nd http://example.com/packages/
	
这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd 表示不在本机重新创建目录结构。

>$ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/

与上一条命令相似,但多加了一个 --accept=iso 选项,这指示 wget 仅下载 i386 目录中所有扩展名为 iso 的文件。你也可以指定多个扩展名,只需用逗号分隔即可。

>$ wget -i filename.txt
	
此命令常用于批量下载的情形,把所有需要下载文件的地址放到 filename.txt 中,然后 wget 就会自动为你下载所有文件了。

>$ wget -c http://example.com/really-big-file.iso

这里所指定的 -c 选项的作用为断点续传。

>$ wget -m -k (-H) http://www.example.com/
	
该命令可用来镜像一个网站,wget 将对链接进行转换。如果网站中的图像是放在另外的站点,那么可以使用 -H 选项。

[wget]:http://www.gnu.org/software/wget/

Files in this skill

  • 7-new-techniques-every-web-developer-should-know.md6.9 KB
  • archlinux-local-wiki.md692 B
  • clear-dns-NSConflict-erasin.md1.2 KB
  • clear-dns.md303 B
  • e4rat-for-linux.md1.8 KB
  • fusion-emerald-git.md571 B
  • git-html5media.md1.7 KB
  • git-master-develop-art.md4.7 KB
  • git-pie-css3.md16.5 KB
  • git-pik-ruby-install.md1.4 KB
  • git-tome-peston.md13.9 KB
  • git.md2.3 KB
  • github-zh-pro-git.md2.1 KB
  • gnome-tool-hidden.md1.1 KB
  • gnome-tools-extra.md1 KB
  • google-chrome-search-set.md1.1 KB
  • google-code-git.md776 B
  • html-css-reset.md488 B
  • index.html114 B
  • index.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.