Date: Wed, 27 Jan 2016 18:07:08 +0200 From: Esa Karkkainen <ejk@iki.fi> To: freebsd-questions@freebsd.org Subject: Re: What's taking up all my disk space? Message-ID: <20160127160708.GB14223@pp.htv.fi> In-Reply-To: <20160127081751.fd94fa9b.freebsd@edvax.de> References: <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com> <20160126180529.GA14223@pp.htv.fi> <20160127081751.fd94fa9b.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Esa -- "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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160127160708.GB14223>