Child pages
  • Getting subdirectory sizes including "hidden" dot-directories
Skip to end of metadata
Go to start of metadata

Getting subdirectory sizes including "hidden" dot-directories

When investigating what eats up all that disc space the dot-directories like  .cache.local.thunderbird and the like usually evade a du call.

Here's how to get those too, and sort the output by eaten space:

du -smc .[!.]* * |sort -n

Bonus hint: sort understands -h too:

du -smc .[!.]* * |sort -h
  • No labels