Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Getting subdirectory sizes including "hidden" dot-directories

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

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

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

Bonus hint: sort understands -h too:

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