New answers tagged netstat
A recent version of ss should also display UDP listeners in that way. You can limit to UDP with ss -unlp. I have tried a recent Debian version where ss --version reports ss utility, iproute2-ss140804 and that does work. On A Red Hat 5 system with ss utility, iproute2-ss061002 it doesn't. You do get more info there using ss -aunp although that also shows ...
netstat itself does not support such filtering. You probably have to do something like: sudo netstat -lp --inet | grep " $pid/"
Top 50 recent answers are included