The Linux ss Command: Socket Statistics
ss shows socket statistics - the modern replacement for netstat.
Basic Usage
ssAll sockets.
TCP
ss -tTCP sockets only.
UDP
ss -uUDP sockets only.
Listening
ss -lListening sockets.
Common Examples
All with process
ss -tulpnTCP/UDP listening with process names.
Established connections
ss -tn | grep ESTABActive connections.
Specific port
ss -tn sport = :80Port 80 connections.
Options
-t— TCP-u— UDP-l— Listening-p— Process-n— Numeric ports
