lsof switches

From: Brian James O'Connor <boc_at_ironbark.bendigo.latrobe.edu.au>
Date: Sun, 3 Nov 1996 12:26:35 +1100 (EST)

Reply To: b.oconnor_at_bendigo.latrobe.edu.au
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 945

Hello,
      try as I might I can't get lsof to list open files,
it lists open devices, eg

lsof /usr

COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
<snip>
sh 593 boc 1w VREG 11, 6 211 1352521 /usr (/dev/re0g)
<snip>
httpd 26404 httpd cwd VDIR 11, 6 1024 515782 /usr (/dev/re0g)
<snip>

So what gives?, I want to know what FILE is being read or written, the
device name is useless to me (all home directories are on one RAID array).

I would like to be able track "disk leaks", it seems "du" is the
a more usefull tool for this. Have misunderstood?, is there a switch to
fix this?

TIA
boc
-- 
------------------------------------------------------------
        Brian O'Connor, Unix Systems Consultant
              Latrobe University,Bendigo
          boc_at_ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------
Received on Sun Nov 03 1996 - 02:52:50 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT