ss: show listening sockets
Show TCP listening ports with process names
ss -tlnp
- tool
- lsof19 commands
More lsof commands
-
ss -tanp | grep ESTABFilter established TCP connections with process info
-
ss -ulnpList UDP listening ports with process names
-
ss -sPrint socket usage summary by state
-
ss -tnp dst :443Show connections going TO port 443
-
lsof -nP -i :<port>Show which process owns a port; -nP skips DNS/service name lookups for speed