(TIL) Nix: Sorted human readable sizes
du -hsc * | sort -h
What each option means for du:
- h: show sizes in human readable format (1K, 1M, 1G, …)
- s: summarize: display only a total for each argument
- c: also display a grand total
The
-h
option onsort
makes it understand the-h
format (human readable) ondu
.
Via SuperUser.
Comments