Child pages
  • Getting subdirectory sizes including "hidden" dot-directories

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Monospacing bits

...

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

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

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

Bonus hint: sort understands -h too:

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

...