identifying processes that own sockets

Mark Allyn allyn at sleepy.UUCP
Tue Apr 23 02:47:12 AEST 1991


The netstat command shows the prototype, local address, and foreign
address for each active internet connection. 

I would like to be able to identify the process that own the socket for
a particular internet connection. 

Using the netstat -A gives the address of the protocol family for
a socket. Is there any way (using iostat, pstat, or anything else) that
I can correlate a particular socket to a particular process id??

Thanks!



More information about the Comp.unix.questions mailing list