/ Published in: Bash
Expand |
Embed | Plain Text
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Comments
Subscribe to comments
You need to login to post a comment.
surfeurX on 03/31/11
1 person have marked this snippet as a favorite
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Subscribe to comments
You need to login to post a comment.
netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -n