linux command to get the storage used on child sub-directories

du -hd 1 /yourPath
# or
cd /
du -h --max-depth=1
100M	./root
1.3G	./var
202M	./boot
1.6G	./snap
...
Scroll to Top