From owner-freebsd-newbies@FreeBSD.ORG Tue Feb 17 16:08:57 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 323DE16A4CE for ; Tue, 17 Feb 2004 16:08:57 -0800 (PST) Received: from hijra.homeunix.com (adsl-68-92-89-26.dsl.stlsmo.swbell.net [68.92.89.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0914743D1D for ; Tue, 17 Feb 2004 16:08:57 -0800 (PST) (envelope-from tweaxor@hijra.homeunix.com) Received: by hijra.homeunix.com (Postfix, from userid 1001) id ECCDDFF9; Tue, 17 Feb 2004 17:23:32 -0600 (CST) Date: Tue, 17 Feb 2004 17:23:32 -0600 From: Tweax Daemon To: "Goodleaf, John M" Message-ID: <20040217232332.GA44267@hijra.homeunix.com> Mail-Followup-To: "Goodleaf, John M" , freebsd-newbies@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Mailer: Mutt http//www.mutt.org X-GeekCode: 01001101 01110101 01110100 01110100 X-Quote: Justing having phun, Open Source Computing!! cc: freebsd-newbies@freebsd.org Subject: Re: dang: how to display the process ass'd with an active port X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 00:08:57 -0000 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