Difference between revisions of "Netstat"

From DevOps Notebook
(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>")
(No difference)

Revision as of 10:55, 25 July 2024

Get connections per IP sorted

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