From owner-freebsd-questions Sat Jan 26 1:52:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 6DFEF37B404 for ; Sat, 26 Jan 2002 01:52:37 -0800 (PST) Received: from dialup-209.245.132.233.dial1.sanjose1.level3.net ([209.245.132.233] helo=blossom.cjclark.org) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16UPVb-0003hI-00; Sat, 26 Jan 2002 01:52:28 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g0Q9qP916460; Sat, 26 Jan 2002 01:52:25 -0800 (PST) (envelope-from cjc) Date: Sat, 26 Jan 2002 01:52:25 -0800 From: "Crist J. Clark" To: Edwin Groothuis Cc: Alex Ranaldi , questions@FreeBSD.ORG Subject: Re: unlinking open files Message-ID: <20020126015225.J14394@blossom.cjclark.org> References: <0GQI0028YVW8VR@osfmail.rit.edu> <20020126132452.M823@k7.mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020126132452.M823@k7.mavetju.org>; from edwin@mavetju.org on Sat, Jan 26, 2002 at 01:24:52PM +1100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jan 26, 2002 at 01:24:52PM +1100, Edwin Groothuis wrote: [snip] > To see which applications are using a file you want to remove, > install sysutils/lsof from the ports-collection: > [~] edwin@k7>lsof -u edwin | grep access > httpd-php 2778 edwin 19w VREG 116,131077 3585930 381204 /usr/home/www/log/access_log Or just use fstat(1) which is part of FreeBSD. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message