Hot answers tagged

2

Try netstat -ant | egrep '(:80|:443) .*:.*ESTABLISHED' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c or netstat -nt | awk '$4 ~ /:(143|993)$/ && $6 ~ /ESTABLISHED/ {print $5}' | cut -d: -f1 | sort | uniq -c netstat -nt lists TCP connections without DNS lookups of the IP address egrep ':(80|443) .*:.*ESTABLISHED' selects ESTABLISHED ...



Only top voted, non community-wiki answers of a minimum length are eligible