From owner-freebsd-questions Thu May 27 9:43:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 09BA2152DA for ; Thu, 27 May 1999 09:43:23 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from rainbow5.scientia.demon.co.uk ([192.168.1.2] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.00 #1) id 10n2Q0-0006I6-00; Thu, 27 May 1999 16:50:04 +0100 (envelope-from ben@rainbow5.scientia.demon.co.uk) Received: from rainbow5.scientia.demon.co.uk (ident=ben) by rainbow5.scientia.demon.co.uk with local (Exim 3.00 #1) id 10n2Py-0001Fb-00; Thu, 27 May 1999 16:50:02 +0100 (envelope-from ben@rainbow5.scientia.demon.co.uk) Date: Thu, 27 May 1999 16:50:02 +0100 From: Ben Smithurst To: W Gerald Hicks Cc: Andre Anneck , freebsd-questions@FreeBSD.ORG Subject: Re: How to check which ports are in use? Message-ID: <19990527165001.A4786@rainbow5.scientia.demon.co.uk> References: <199905270525.HAA16939@bbaer.muenster.de> <199905270542.BAA34173@bellsouth.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199905270542.BAA34173@bellsouth.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG W Gerald Hicks wrote: >> Hi there, >> can someone point me to the place where I can read about how to >> get information about which ports are currently in use? > > Ports? You mean software installed from the ports collection or > something else? > > 'pkg_info -a' will show gobs of information for the former... > > cd /usr/ports/sysutils/lsof && make install clean && man lsof > should help with other types of 'ports'. If he's talking about tcp/udp ports (as in the type listed in /etc/services), `netstat -an | grep LISTEN' will show which of those have a program listening for connections. hopefully Andre will clarify what "ports" he's asking about. -- Ben Smithurst ben@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message