Listening Sockets & States (ss)
Inspect open ports, owning processes, and TCP connection distribution.
All listening TCP/UDP sockets with PIDs
ss -tulnp
Established TCP connections on port 443
ss -tan state established '( sport = :443 or dport = :443 )'
Socket summary statistics
ss -s