Re: file locking

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Thu May 27 2004 - 20:22:34 AKDT

On Thu, 27 May 2004, DENNIS BYRNE wrote:

> anyone know a command that will tell me what files a process has locked?

If you want to know what file descriptors any given process has open you can
simply do a 'ls -l /proc/{PID}/fd/' and get a quick listing. If you really
need to know about advisory locks, etc., then I'd suggest you use a utility
like lsof, which displays that info in athe FD column by default.

        --Arthur Corliss
          Bolverk's Lair -- http://arthur.corlissfamily.org/
          Digital Mages -- http://www.digitalmages.com/
          "Live Free or Die, the Only Way to Live" -- NH State Motto
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu May 27 20:19:43 2004

This archive was generated by hypermail 2.1.8 : Thu May 27 2004 - 20:19:44 AKDT