3 ms·
Genuinely the only way I use du is like this: du -sh * which shows total disk usage for every file and folder in the current directory. I've actually aliase
by detuur 8y ago
Genuinely the only way I use du is like this:
du -sh *
which shows total disk usage for every file and folder in the current directory. I've actually aliased it as `dush` because I use it so often.
Bonus tip: if you're using btrfs, it has a built-in du that keeps track of cow statistics, so you can see which files/folders are deduped and which aren't. It's invoked with
btrfs filesystem du -s *
or (because the btrfs binary understands abbreviations)
btrfs fi du -s *