Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

netstat -anp | grep :80 | wc -l

netstat -ant | egrep '(:80|:443) .*:.*ESTABLISHED' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #netstat #grep #wc
ADD COMMENT
Topic
Name
5+1 =