Check if file is open...

Ed Wilts ewilts at ewilts.org
Fri Apr 21 04:31:41 UTC 2006


On Tue, Apr 18, 2006 at 12:10:45PM -0400, Magnus Andersen wrote:
> I need to find out if a file is open (currently being written to) or
> not and I can't seem to figure it out.

Others have pointed you to lsof, but fuser is actually faster if you're
interested in a single file.

        .../Ed

-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program




More information about the redhat-list mailing list