Folder Disk Usage

I wanted to find out what’s the total size (including sub folders) of every single sub directory inside one particular folder. Additionally, I only wanted to see folders that are at least some megabytes in size. Here are some commands that helped:

$ du --max-depth=1 -h | grep -P "^[^MG]*[MG]\t"           # human readable
$ du --max-depth=1 -B1K | sort -nr | grep -E '^[0-9]{4,}' # sorted by size, 1K blocks