===============================
== Andrew Imeson's Microblog ==
===============================
My microblog about anything

Sorting du with human readable output

Linux

TIL about the sort -h (or --human-numeric-sort) option which will sort by human readable byte measurements. It’s present in both GNU and BSD versions of sort I checked.

$ du -h | sort -h | tail -n 3
 81M	./tmpchrome/Default
129M	./tmpchrome
 10G	.