Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

29
tldr/ngrep Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ngrep
> Filter network traffic packets using regular expressions.
> More information: <https://github.com/jpr5/ngrep>.
- Capture traffic of all interfaces:
`ngrep -d any`
- Capture traffic of a specific interface:
`ngrep -d {{eth0}}`
- Capture traffic crossing port 22 of interface eth0:
`ngrep -d {{eth0}} port {{22}}`
- Capture traffic from or to a host:
`ngrep host {{www.example.com}}`
- Filter keyword 'User-Agent:' of interface eth0:
`ngrep -d {{eth0}} '{{User-Agent:}}'`