Skip to content

rynhndrcksn/gdu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdu

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.

Usage

gdu [DIRECTORIES]...

Why

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.

Building

Requires Golang.

make build

The compiled binary will be at ./bin/gdu.

Contributing

If you see a problem or improvement that can be made, please open up an issue to discuss it.

License

Copyright© 2026 Ryan Hendrickson. Released under the BSD-3-Clause License. See LICENSE for details.

About

Go implementation of `du`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors