Subject: Re: process name in netstat
To: Emmanuel Dreyfus <>
From: Andrew Doran <>
List: tech-userlevel
Date: 08/25/2001 13:12:20
Emmanuel Dreyfus <> wrote:

> It seems Solaris and Linux have a flag to get netstat displaying the
> process that owns each socket displayed. I wonder if this could be a
> wanted feature for NetBSD

fstat already does this:

amnesiac$ fstat | grep :22 
ad       ssh          229    3* internet stream tcp c08964ec
root     sshd         165    3* internet stream tcp c0896168 *:22