-a: include files and directories.
-h: print sizes in human readable form (e.g.,
-d1: restrict contents to those that are one level deep in current path ( i.e. don’t search recursively)
28K ./src 421M ./node_modules 224K ./.git 421M .
Bonus: add shell alias
Add the following to a file your shell will source (e.g.,
alias sizes="du -ahd1"