*BSD News Article 76414


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!swrinde!cssun.mathcs.emory.edu!cs.utk.edu!cs!larson
From: larson@cs.utk.edu (Chris Larson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to determine fd's owner?
Date: 19 Aug 1996 19:11:07 GMT
Organization: CS Labs, University of Tennessee, Knoxville
Lines: 27
Message-ID: <LARSON.96Aug19151107@kenner.cs.utk.edu>
References: <4v1fj3$8pm@itchy.serv.net> <DwAvL8.uJ@seeware.DIALix.oz.au>
NNTP-Posting-Host: kenner.cs.utk.edu
In-reply-to: mark@putte.seeware.DIALix.oz.au's message of Sat, 17 Aug 1996 20:58:20 GMT

In article <DwAvL8.uJ@seeware.DIALix.oz.au> mark@putte.seeware.DIALix.oz.au (Mark Hannon) writes:


   > What the heck is going on here? Is there some way that I can view the 
   > active open file descriptors and who's locking them? I'm at a bit of a loss
   > here.
   > 


   fstat -f /name_of_filesystem

   Should start you on the right track.

   /mark



There's also a program called "lsof" which will give you a list
of all open files. I'm not sure if it's in the dist for FreeBSD or
not but we use it on our Suns.

Chris
--
-------------------------------------
Chris Larson        larson@cs.utk.edu
Computer Science Department Labstaff
University of Tennessee - Knoxville