[ale] dush

DJ-Pfulio DJPfulio at jdpfu.com
Wed Mar 4 03:11:10 EST 2015


Really simple and easy on current Ubuntu:
 $ du -sh *|sort -hr | more

As usual, there are 50 different ways to solve this.


On 03/03/2015 06:37 PM, Leam Hall wrote:
> 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
>>
> _______________________________________________
> 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


-- 
Got Linux? Used on smartphones, tablets, desktop computers, media centers, and
servers by kids, Moms, Dads, grandparents and IT professionals.


More information about the Ale mailing list