A very slimmed down version of the du utility.
Pretty much only tells you the size of a directory, and almost nothing else.
Note
This program differs from du in the fact it doesn't display the size in blocks that directory is using.
Rather, it displays the raw number of bytes that a directory is using.
Because of this, running du -sh and gdu on the same directory will yield different sizes.
gdu [DIRECTORIES]...Will I ever use this in place of du?
No, once this is built, it will probably never be ran by anyone again.
This was entirely just a small utility program designed to get me more comfortable with more "systems level" stuff.
Most of the work I do with Go is APIs or CLIs, and I want to dabble more in the utility/systems level world. So building small Go versions of regular utilities I use almost daily, helps with this learning.
Requires Golang.
make buildThe compiled binary will be at ./bin/gdu.
If you see a problem or improvement that can be made, please open up an issue to discuss it.
Copyright© 2026 Ryan Hendrickson. Released under the BSD-3-Clause License. See LICENSE for details.