1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/linkchecker.md

21 lines
597 B
Markdown
Raw Normal View History

2019-12-01 03:25:29 +01:00
# linkchecker
> Command-line client to check HTML documents and websites for broken links.
2019-12-01 03:25:29 +01:00
> More information: <https://linkchecker.github.io/linkchecker/>.
- Find broken links on <https://example.com/>:
2019-12-01 03:25:29 +01:00
`linkchecker {{https://example.com/}}`
- Also check URLs that point to external domains:
`linkchecker --check-extern {{https://example.com/}}`
- Ignore URLs that match a specific regular expression:
2019-12-01 03:25:29 +01:00
`linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}`
2019-12-01 03:25:29 +01:00
- Output results to a CSV file:
`linkchecker --file-output {{csv}}/{{path/to/file}} {{https://example.com/}}`