What's taking up all my disk space?

Polytropon freebsd at edvax.de
Wed Jan 27 07:17:56 UTC 2016


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, ...


More information about the freebsd-questions mailing list