Question about processes

Danny Pansters danny at ricin.com
Sun Apr 10 14:24:01 PDT 2005


On Sunday 10 April 2005 23:13, David J. Weller-Fahy wrote:
> How does one determine which process initiated any given network
> connection?  Or which program (on disk) initiated the process that
> initiated the network connection?
>
> Been searching, but not finding.
>
> Regards,

sockstat will show you all network and unix sockets and the processes and 
their PIDs. If you want to know more such as the full path or so (if used 
when invoked), you can run ps wwwaux and grep on the PID.

HTH,

Dan



More information about the freebsd-questions mailing list