> I need some help with listing home directories that are greater than i
> given size. I have tried
> find /home -type d -size +50000k
> and
> find /home -type d -size +50000k -iname "*"
> Both without much success...

find will not calculate folder sizes (as you've already seen).

You'll need to use du and then filter the output.  Perchance something like:

  du | grep -v "\/" | sort -n

This should give you the directories (in the current dir) w/o the sub
directories but include the calculated size of the directory sorted
numerically on the output.



-- 
gentoo-user@gentoo.org mailing list

Reply via email to