What's taking up all my disk space?

Esa Karkkainen ejk at iki.fi
Tue Jan 26 18:15:02 UTC 2016

On Tue, Jan 26, 2016 at 11:21:25AM +0100, Murk Fletcher wrote:
> Hi!


> Maybe there's a way to use `du` to show all files larger than 1GB
> and then pass it on to some other command to sort them by size?

This shows you 20 largest directories and files over 1GB in size.

# du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20

> Thanks!

You're welcome.



"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
        -- Douglas Adams 1952 - 2001

More information about the freebsd-questions mailing list