From owner-freebsd-questions Mon May 20 22:21:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA27787 for questions-outgoing; Mon, 20 May 1996 22:21:04 -0700 (PDT) Received: from shell.aros.net (root@shell.aros.net [205.164.111.19]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA27781 for ; Mon, 20 May 1996 22:21:01 -0700 (PDT) Received: (from angio@localhost) by shell.aros.net (8.7.5/Unknown) id XAA15083; Mon, 20 May 1996 23:20:58 -0600 (MDT) From: Dave Andersen Message-Id: <199605210520.XAA15083@shell.aros.net> Subject: Re: Who is using a file? To: dkelly@hiwaay.net (David Kelly) Date: Mon, 20 May 1996 23:20:57 -0600 (MDT) Cc: questions@freefall.freebsd.org In-Reply-To: from David Kelly at "May 20, 96 09:28:45 pm" X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Unless there's a specific utility I'm not aware of, you're looking for 'lsof'. (list open files). It's available from: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof There are FreeBSD binaries available. -Dave Andersen Lo and behold, David Kelly once said: > Once Upon A Time I came across the BSD utility to determine who has a > particular file open and now I've forgotten it. This is a real useful thing > when one wants to umount a fs and learns its busy. I *think* the utility > could list the open files on a filesystem and/or list the users who are > using a single file. > > -- > David Kelly N4HHE, n4hhe@amsat.org, dkelly@hiwaay.net > ============================================================= > To invent, you need a good imagination and a pile of junk. > - Thomas Edison > > -- angio@aros.net Complete virtual hosting and business-oriented system administration Internet services. (WWW, FTP, email) http://www.aros.net/ http://www.aros.net/about/virtual "There are only two industries that refer to thier customers as 'users'."