Sorting du with human readable output
LinuxTIL 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 .