[rescue] Finding out owner of the socket port

Derrick Daugherty rescue at sunhelp.org
Fri Sep 21 15:35:22 CDT 2001


It's rumored that around Fri, Sep 21, 2001 at 12:30:14PM -0400
"Greg A. Woods" <woods at weird.com> wrote:
> 
> (On FreeBSD it's not quite as nice as NetBSD yet because you have to use
> 'netstat -A' to find the control address, and then 'fstat' to find the
> process ID; but on the latest NetBSD now you just use 'fstat' alone as
> it now shows almost all the details, leaving you only the hostname and
> portname lookups to do.)

And some variants of `fuser` allow pid/port lookups.

sudo fuser -n tcp 22
22/tcp:               4098

^Derrick



More information about the rescue mailing list