[mdlug] Something's eating my /home partition

Carl T. Miller carl at carltm.com
Tue Apr 20 05:57:10 EDT 2010


David McMillan wrote:
> this remind anyone of anything?  Or does anyone know of a good way to
> list all files and/or directories in a partition sorted for size?

To find 20 largest files at least 1 gig in size:
find /home -type f -size +1G -exec du -m {} \; | sort -nr | head -n20

To find 20 largest directories:
find /home -type d -exec du -sm {} \; | sort -nr | head -n20

c






More information about the mdlug mailing list