2
I know I can use lsof
to list open files, and I know I can use find
to find files by inode within a given directory.
But how can I effectively combine these two programs to list all open files which are open within a given directory? Or is there a better way to answer this question?
2This should be the accepted answer. – dr01 – 2018-11-13T09:27:20.600
If you just care about the current working directory, you can do
lsof +d .
– rinogo – 2019-03-27T15:45:44.807