/home/karl/
Ruben Laban
r.laban at ism.nl
Wed May 12 07:15:53 UTC 2010
On Wednesday 12 May 2010 at 09:00 (CET), Dotan Cohen wrote:
> On 12 May 2010 01:46, Rei Shinozuka <shino at panix.com> wrote:
> > when i used to have quotas, i used to run this in $HOME :
> >
> > du -s .[A-Za-z0-9]* * | sort -nr | head
>
> Although the regex is nice for removing . and .. it will fail for
> directories in non-latin alphabets. I have lots of those! But why is
> that even necessary, why not simply "du -s *"? What trick am I
> missing?
du -s * doesn't "catch" hidden directories (starting with a dot). Which is why
I tend to use: du -s .??* * (or actually du -sch .??* * usually).
--
Regards,
Ruben Laban
Senior Systems and Network Administrator
ISM eCompany
More information about the ubuntu-users
mailing list