[nycbug-talk] process/command listening to a socket

Jesse Callaway bonsaime at gmail.com
Tue Apr 12 13:12:28 EDT 2011

I've been linuxized for a while by the demands of... well everyone
runs Centos : (

Anwyay, I'm not sure how to do some things in BSD anymore. In
particular, I forget how to show the processes which have listening
sockets. With gnu netstat I do this to show programs with listening
tcp's -

netstat -ntlp

It's understood that -p is certainly not going to behave the same in
both environments. Would lsof be a better approach in BSD?


More information about the talk mailing list