← 返回命令列表

Linux command

linkchecker 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Check website links

linkchecker [https://example.com]

Check local HTML file

linkchecker [index.html]

Recursive check

linkchecker -r [https://example.com]

Output to file

linkchecker -o html -F html/[report.html] [url]

Check external links too

linkchecker --check-extern [url]

Limit depth

linkchecker -r --depth=[3] [url]

说明

linkchecker validates links in websites and documents. It finds broken links, redirects, and errors. The tool supports HTTP, HTTPS, FTP, and local files. It can check recursively and generate reports.

参数

-r
Recursive checking.
--depth _N_
Maximum recursion depth.
--check-extern
Check external links.
-o _TYPE_
Output type (text, html, csv, xml).
-F _FILE_
Output to file.
--help
Display help information.

FAQ

What is the linkchecker command used for?

linkchecker validates links in websites and documents. It finds broken links, redirects, and errors. The tool supports HTTP, HTTPS, FTP, and local files. It can check recursively and generate reports.

How do I run a basic linkchecker example?

Run `linkchecker [https://example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r do in linkchecker?

Recursive checking.