3 ms·
ss is from pkg iproute2 (installed by default on Void Linux) ss -tunlp '(dst = :8080 or src = :8080)' ss -K '(dport = 8080 or sport = 8080)' BSD has fst
by 1vuio0pswjnm7 4y ago
ss is from pkg iproute2 (installed by default on Void Linux)
ss -tunlp '(dst = :8080 or src = :8080)'
ss -K '(dport = 8080 or sport = 8080)'
BSD has fstat(1) which will list open file descriptors including network connections.
NetBSD has sockstat(1) which lists open sockets.
OpenBSD has tcpdrop(1) but that's only TCP.
MacOS has none of these, apparently. It looks like it comes with fuser and lsof instead.
- jeffbee 4y agoss is the right tool for this. Additionally, it may be commonly necessary to find processes in network namespaces. ip -all netns exec ss -K …