dredge

A utility for inspecting disk usage in directory trees.

Usage

dredge <directory to inspect>

k and PgUp go up, j and PgDn go down, l descends one level down into the selected directory, and h goes one level up. q quits.

d deletes a file or directory; you will see a (y/N) prompt each time you use this function. The deletion is recursive, i.e. deletion of a directory will delete all its contents. Symbolic links will be deleted without following. The delete function will always delete something if you have the permissions to do so, e.g. if a file or directory is write protected but owned by you, it will be deleted just like any other file. Directories containing write protected files will similarly be deleted with no special warning.

Caveats

Disclaimer

dredge is immature software written as a hobby project to learn Rust by someone (me) for whom the description "does not possess guru-level understanding of file systems" is a severe understatement of the actual level of ignorance involved. Though I don't think anyone will actually use it, I am releasing it because I've personally found it useful. I make no guarantees about it being bug-free, reasonably performant, correct in its presentation of data, or anything else.

Note that ncdu is a similar program with a much higher level of maturity, more cool features, and a larger user base. You should probably just use ncdu instead, for now.