How do I get the disk usage of a directory including hidden directories/files?

Chris Burton

Using du with a wildcard would not normally include "hidden" directories/files (those starting with a dot). But you can show the usage with this simple command.

du -sch .[!.]* *


Tags: disk, disk usage, dot, du, hidden, usage
Average rating: 5 (1 Vote)

You cannot comment on this entry