list sizes of all subdirectories and sort them by size

PHOTO EMBED

Wed Aug 09 2023 14:32:19 GMT+0000 (Coordinated Universal Time)

Saved by @vs #bash

du -h --max-depth=1 /path/to/folder | sort -h
content_copyCOPY