[Techtalk] home directory/raid array mystery

Benjamin M. A'Lee bma-linuxchix at bma.cx
Fri Nov 12 10:37:18 UTC 2010


On Thu, Nov 11, 2010 at 05:08:31PM -0800, Maria Mckinley wrote:
> On 11/11/10 4:24 PM, Kathryn Hogg wrote:
> >
> > Alina Friedrichsen wrote:
> >> Hi,
> >>
> >> tried to run "du -h"?
> >
> > I like to pipe that into sort -h
> >
> >
> 
> Great idea. Not sure why doing that has never occur to me. I don't see 
> the h option on the man sort page, and I get an error if I try to use it.
> 
> But, I think you meant:
> 
> du -h |sort -n
> 
> or my preference when just looking for who to point the finger at:
> 
> du -h --max-depth=1 |sort -n
> 
> I wonder if my RAID array has just become completely fragmented, because 
> du does look at hidden directories, and this is such a crazy discrepancy 
> between du and df.

-h seems to be a fairly recent addition to sort; I've got it on my
Debian Squeeze desktop but not Lenny servers. Looks useful, though.

-- 
Benjamin M. A'Lee || bma at bma.cx || gpg: 0x166891C7 || http://bma.cx/


More information about the Techtalk mailing list