How can I find out the open files in a directory

Hello all,

Is there any other way of finding the open files in a directory apart from command 'lsof'.

thanks

That depends on what OS you are using which you fail to state.

You probably have "lsof" or if not, at least "fuser"; either can help.

Well, yes, I think that there is. But whether its any good for you depends on whether it shares the same flaw as 'lsof'. As you don't say why lsof does not fulfil this purpose for you I can't comment, except that maybe your lecturer has asked you to find another way of finding open files.

lsof is really the obvious way to do it; what is wrong with that?