From owner-freebsd-security Sat Sep 22 7:46:46 2001 Delivered-To: freebsd-security@freebsd.org Received: from whiskey.klatsch.org (whiskey.klatsch.org [209.6.82.6]) by hub.freebsd.org (Postfix) with SMTP id C2D3E37B41B for ; Sat, 22 Sep 2001 07:46:43 -0700 (PDT) Received: (qmail 54011 invoked by uid 1001); 22 Sep 2001 14:46:13 -0000 Date: Sat, 22 Sep 2001 10:46:13 -0400 From: Ben Eisenbraun To: green Cc: freebsd-security@freebsd.org Subject: Re: how ? Message-ID: <20010922104612.M35485@klatsch.org> References: <13428770066.20010922173014@prokk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <13428770066.20010922173014@prokk.net>; from green@prokk.net on Sat, Sep 22, 2001 at 05:30:14PM +0300 X-Disclaimer: I'm the only one foolish enough to claim these opinions. Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Sep 22, 2001 at 05:30:14PM +0300, green wrote: > hi ! > > what command i can use, to see what files are opened by certain > process, and what ports are opened by certain file ? lsof, which is in the ports at sysutils/lsof and sockstat, which is in the base system at /usr/bin/sockstat both work well for this. -b To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message