[Linux-disciples] du, narrowed a bit

Adam Rosi-Kessel adam at rosi-kessel.org
Thu Aug 12 13:44:03 EDT 2004


On Thu, Aug 12, 2004 at 01:28:50AM -0400, Stephen R Laniel wrote:
> On Thu, Aug 12, 2004 at 12:16:38AM -0400, Dylan Thurston wrote:
> > du -x / | sort -n
> Damned switches that I fail to pay attention to. Thanks,

I've also used xdiskusage on occasion.

And the following script, which I call 'dush':

#!/bin/bash
find . -maxdepth 1 -exec sudo du -s '{}' ';'|sort -n|sed -e "s/^.*\.\///g" -e "s/'/\\\\'/g" |head -n -1|xargs -i sudo du -h -s '{}'

It's really inefficient, but handy.
-- 
Adam Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040812/1966d164/attachment.pgp


More information about the Linux-disciples mailing list