Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-20 00:16:41 +00:00
parent 428866811b
commit 7b74e73417
8 changed files with 56 additions and 27 deletions

29
tldr/lychee Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# lychee
> Find broken URLs.
> More information: <https://lychee.cli.rs/usage/cli/>.
- Scan a website for broken links:
`lychee {{https://example.com}}`
- Display a breakdown of error types:
`lychee --format detailed {{https://example.com}}`
- Limit the amount of connections to prevent DDOS protection:
`lychee --max-concurrency {{5}} {{links.txt}}`
- Check files in a directory structure for any broken URLs:
`grep -r "{{pattern}}" | lychee -`
- Display help:
`lychee --help`