#ss
6 one-liners with this tag.
All one-liners tagged ss
Check if Plesk is listening on ports 8443 and 8880
#ss -tlnp | grep -E ':(8443|8880)\b'
Count TCP connections by state
$ss -Htan | awk '{print $1}' | sort | uniq -c | sort -rn
Count web server connections per IP address
$ss -Htn state established '( sport = :80 or sport = :443 )' | awk '{print $4}' | rev | cut -d: -f2- | rev | sort | uniq -c | sort -rn | head -20
Find out which process is using a port
#ss -tlnp 'sport = :80'
List open ports and listening services
#ss -tulpn
Show outgoing SMTP connections and their processes
#ss -Htnp state established '( dport = :25 )'