What's taking up all my disk space?

Esa Karkkainen ejk at iki.fi
Wed Jan 27 16:16:46 UTC 2016

On Wed, Jan 27, 2016 at 08:17:51AM +0100, Polytropon wrote:
> On Tue, 26 Jan 2016 20:05:29 +0200, Esa Karkkainen wrote:
> > # du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20
> Nice use of awk! Note that you can leave out "{print}" because
> this is the default action:

Force of habit, I'm used to writing one liners that work, or should
work, across multiple unix-like operating systems and versions.

For example I still use "find blah -print", even "-print" is the default
action on most unix-like operating systems find.

IIRC that one liner above, should work on just about any unix-like
OS I've come across, excluding some or all versions of Solaris, because
Solaris "du" doesn't have "-x" option.


"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