[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] dush
- Subject: [ale] dush
- From: JLightner at dsservices.com (Lightner, Jeff)
- Date: Tue, 3 Mar 2015 23:23:10 +0000
- In-reply-to: <[email protected]>
- References: <[email protected]>
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
- Follow-Ups:
- [ale] dush
- From: leamhall at gmail.com (Leam Hall)
- References:
- [ale] dush
- From: fassl.tod at gmail.com (Todor Fassl)