robobait: lsof

Posted in robobait at 1:32 pm by ducky

About once every six months, I ask myself, “What process has this file open?”  (Usually it’s related to “why isn’t my sound playing?)

There is a Linux command-line utility that will tell me which processes have which files open, but it always takes me a little while to find it again.  How do I find its name?  What do I search for?  “process file open”?  “which program is using which file”?

So.  The utility is named “lsof” (list open files).   Now maybe next time it won’t take so long to find it.

Leave a Comment

Powered by WP Hashcash

Comment moderation is enabled. Your comment may take some time to appear.