[Techtalk] home directory/raid array mystery

Kathryn Hogg kjh at flyballdogs.com
Fri Nov 12 01:53:33 UTC 2010


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

no I meant -h (or -humanize-numeric-sort)

the human sort makes it know that 5G > 60M for example.


>
> or my preference when just looking for who to point the finger at:
>
> du -h --max-depth=1 |sort -n

mixing -h for du and sort -n will not sort correctly if the files have
different size units (K,M,G)

>
> 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.
>
> ~maria
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>


-- 
Kathryn
http://womensfooty.com
US Freedom Signup: http://womensfooty.com/freedom/2011


More information about the Techtalk mailing list