finding processes by files open

Just thought I'd post this, it's a bit rough and ready but it works.

lsof +D /path

will list all processes and all the files that they have open,

that are contained within a recursive list of everything down

the filetree from /path.

Great to tell where users are running commands from,

how many files there are open, etc.

-Ashen

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct