Skip to content
Advertisement

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.

Advertisement

Answer

This works with coreutils 5.97:

du -cksh *

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement