Show the TCP connections made

This is a small snippet which has helped me on my server; showing you the top tcp connections made:

netstat -atun | awk '{print $5}' | cut -d: -f1 | tail -n+3 | sed -e '/^$/d' |sort | uniq -c | sort -n -r

Nothing funky, but a life saver sometimes ;)


Leave a Reply

Your email address will not be published. Required fields are marked *