Files
tldr/pages.zh/common/lychee.md

24 lines
493 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 荔枝
> 查找损坏的 URL。
> 更多信息:<https://lychee.cli.rs/usage/cli/>.
- 扫描网站以查找损坏的链接:
`lychee {{https://example.com}}`
- 显示错误类型的详细分类:
`lychee --format detailed {{https://example.com}}`
- 限制连接数量以防止 DDOS 保护:
`lychee --max-concurrency {{5}} {{links.txt}}`
- 检查目录结构中的文件是否有任何损坏的 URL
`grep -r "{{pattern}}" | lychee -`
- 显示帮助信息:
`lychee --help`