Re: Question for the experts ...

From: Kevin Nathan (knathan_at_project54.com)
Date: 02/05/04


Date: Wed, 4 Feb 2004 23:33:31 -0700

On Wed, 4 Feb 2004 23:04:22 -0500
"Ruby Tuesday" <rubytuezdayz@yahoo.com> wrote:

> Hi Daniel, isn't that 'lsof' just a snapshot of the active r/w
> file/directory?

No, it's a (L)i(S)t of (O)pen (F)iles -- *all* open files on the
system.

> e.g: it does not show /var/log/messages which is written to during
> booting process etc.
>

It most certainly does -- run it as root this way:

   lsof | grep messages

> What I'm trying to do is to figure out how to separate those
> file(s)/directories that is used Read-Only and Read-Write. Anyone?
>

Not sure what you're asking, here . . . ?

-- 
Kevin Nathan (Montana, USA)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.4.20-4GB-athlon
 11:30pm  up 11 days  2:49,  6 users,  load average: 0.19, 0.08, 0.02


Relevant Pages

  • Re: Question for the experts ...
    ... > booting process etc. ... It most certainly does -- run it as root this way: ... lsof | grep messages ...
    (alt.os.linux.redhat)
  • Re: Lsof on 5.3 does not display file names
    ... Ran it as root and it worked fine. ... and lsof will allow only the root user to list all open files. ... Non-root users may list only open files whose processes have the ... Lsof is distributed with the security mode disabled -- HASSECURITY ...
    (AIX-L)
  • Re: df/du shows big difference of used space
    ... Different commands shows different usage: ... As root, from root directory: ... Tools like lsof may help in cases like that. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [SLE] Suddenly lost access to KMail address book
    ... Scott, I tried lsof | grep vcf as both user and root, but nothing happens. ...
    (SuSE)
  • Re: lsof on 6.0
    ... > FWIW, plain 'lsof' works here, on ... > both as a normal user and as root. ... shuttle-3> uname -a ... Device cache file read-only paths: ...
    (freebsd-stable)