[ale] dush

Leam Hall leamhall at gmail.com
Tue Mar 3 18:37:42 EST 2015


I use:

   du -xk . | sort -n | tail -5

That way it's still in easy numbers and doesn't cross file system boundries.

Leam


On 03/03/15 18:23, Lightner, Jeff wrote:
> Nice - I hadn't realized they'd added -h to sort in later coreutils versions.
>
> Unfortunately it isn't in the RHEL5/CentOS5 version of sort from coreutils 5.97 (it is in RHEL6 coreutils 8.4 though) so this wouldn't work there.  You'd have to do "du -sk | sort -n" which is the way I learned it in UNIX years ago.
>
>
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Todor Fassl
> Sent: Tuesday, March 03, 2015 5:29 PM
> To: Atlanta Linux Enthusiasts
> Subject: [ale] dush
>
> Here is a nice little alias to show you the  biggest files/subdirs in your current working directory:
>
> alias dush='/usr/bin/du -sh * .[!.]* | sort -h | tail'
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>


More information about the Ale mailing list