Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2016 08:17:51 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Esa Karkkainen <ejk@iki.fi>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What's taking up all my disk space?
Message-ID:  <20160127081751.fd94fa9b.freebsd@edvax.de>
In-Reply-To: <20160126180529.GA14223@pp.htv.fi>
References:  <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com> <20160126180529.GA14223@pp.htv.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Jan 2016 20:05:29 +0200, Esa Karkkainen wrote:
> This shows you 20 largest directories and files over 1GB in size.
> 
> # 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:

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

THe condition "$1 > 2^20" is sufficient here.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160127081751.fd94fa9b.freebsd>