ss: socket stats summary
Print socket usage summary by state
ss -s
- tool
- lsof19 commands
More lsof commands
-
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
-
lsof -nP -iTCP -sTCP:LISTENList every TCP listener with PID, no name resolution; modern: ss -ltnp
-
lsof +L1Find unlinked files still held open eating disk; df shows full but du does not
-
lsof /mnt/<name>Reveal processes blocking a 'device busy' umount; pass the mountpoint path