On 04/18/2016 11:17 AM, g wrote:> lsof | grep deleted would work better.Better how? lsof hasn't always been installed by default, while /proc is pretty reliably available.
On 04/18/16 13:31, Gordon Messmer wrote:> On 04/18/2016 11:17 AM, g wrote: >> lsof | grep deleted would work better. > > Better how? >===> 'lsof', aka, list open files, will list every open file on system, and there are a lot. 'grep deleted' will list _only_ the deleted files that are still open.> lsof hasn't always been installed by default, while /proc is pretty > reliably available. >===> install lsof if not installed. -- peace out. If Bill Gates got a dime for every time Windows crashes... ...oh, wait. He does. THAT explains it! -+- in a world with out fences, who needs gates. CentOS GNU/Linux 6.7 tc,hago. g .
On 04/18/2016 01:18 PM, g wrote:> 'lsof', aka, list open files, will list every open file on system, and there > are a lot. > > 'grep deleted' will list_only_ the deleted files that are still open.That's exactly the same thing that "ls -l /proc/*/fd/* | grep '(deleted)'" will do. So how is lsof better, exactly? I know. I'm frustrated today. I spent the weekend dealing with people nit-picking. It's hard to exaggerate how much time and energy can be wasted by people insisting on meaningless changes.