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.
On 04/18/16 15:45, Gordon Messmer wrote:> 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 did not say it was. i was only correcting Valerie's post.> 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. >===> post was not to be nit-picking. adding 'grep deleted' is not meaningless. now, can we get back to op's problem? -- 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 Mon, April 18, 2016 4:22 pm, g wrote:> > > On 04/18/16 15:45, Gordon Messmer wrote: >> 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 did not say it was. i was only correcting Valerie's post.Thanks, I was kind of indulging my laziness, mentioned the command name and assumed keen person will look up command usage him/herself. But on a receiving end being lazy person I would prefer to just copy and paste using _your_ post as opposed to my own ;-) Valeri> >> 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. >> > ===> > > post was not to be nit-picking. > > adding 'grep deleted' is not meaningless. > > now, can we get back to op's problem? > > -- > 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 > . > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On 04/18/2016 03:45 PM, Gordon Messmer wrote:> 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?lsof will show the sizes of the deleted files. lsof | grep deleted | sort -k7n -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
On Mon, Apr 18, 2016 at 6:23 PM, Robert Nichols <rnicholsNOSPAM at comcast.net> wrote:> lsof will show the sizes of the deleted files. > > lsof | grep deleted | sort -k7nThat's a reasonable G.D. answer. The only problem is that on my system, the default output includes a TID column that is present in only some of the lines, so the size column is 8 for many lines and 7 for the others, so sort doesn't work as expected unless you change lsof's output. And you probably should "grep ' (deleted)$' unless you want to see files like /home/gordon/.thunderbird/xxxxxxx.default/calendar-data/deleted.sqlite. Still, I guess I learned one thing.