Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2004 17:23:32 -0600
From:      Tweax Daemon <tweaxor@hijra.homeunix.com>
To:        "Goodleaf, John M" <jgoodlea@fhcrc.org>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: dang: how to display the process ass'd with an active port
Message-ID:  <20040217232332.GA44267@hijra.homeunix.com>
In-Reply-To: <B1C5649A402DD51190930002B330A181049EC145@shemp.fhcrc.org>
References:  <B1C5649A402DD51190930002B330A181049EC145@shemp.fhcrc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 17, 2004 at 03:48:38PM -0800, Goodleaf, John M wrote:
> Under 4.9, how can I tell which process is associated with a port? I've
> noticed a few oddball ports open on a machine, and I'd like to know which
> process did that. Seems straightforward and yet I don't know the answer.
> 
   netstat -an|grep LISTEN
   more /etc/services
etc/services lists which service normally run on those ports
-- 
                             \ ||| / 
++Pat                |        (o o)
++hijra.homeunix.com | ----oo0-(_)-0oo----
++To err is human, to forgive, beyond the scope of the Operating System.
GPG Fingerprint: 3D9B BDB8 E5AD 7F0C DA1D  299E DCE8 9915 44B9 005C



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040217232332.GA44267>