Netstat

From DevOps Notebook
Revision as of 10:55, 25 July 2024 by MilosZ (talk | contribs) (Created page with "=== Get connections per IP sorted === <syntaxhighlight lang="bash"> # netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get connections per IP sorted

# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n