Search code examples
linuxcommand-line

linux command line: du --- how to make it show only total for each directories


I am doing it by (with coreutils_8.5-1ubuntu6_amd64):

du -sch `find ./ -maxdepth 1 -type d`

I am looking for a simple way (shorter cmd) to find size of subdirectories. Thank you.


Solution

  • This works with coreutils 5.97:

    du -cksh *