On linux, is there a way to count the number of file descriptors open to a some file?

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

The lsof command will tell you all the open files and what program has them open.

lsof filename

link|improve this answer
1  
No need for grep: lsof filename – Dennis Williamson Apr 9 '10 at 19:59
feedback

Also:

fuser -v filename
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.