Linux: Established Connections Using Netstat

To list the currently established connections on the Linux machine, use the following command…

netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | 
sort | uniq -c | awk '{ printf("%st%st",$2,$1) ; 
for (i = 0; i < $1; i++) {printf("*")}; print "" }'
Advertisements
This entry was posted in Apple, Linux, Security, Server and tagged , , , , , . Bookmark the permalink.