dut is a robust disk usage calculator for Linux, offering accurate counting of hard links with an output inspired by NCDU and fully compatible with plain Linux tty. The tool provides customizable output formats and allows easy changes to the maximum depth of files shown. Surprisingly fast, dut outperforms other programs once Linux’s disk caches are populated. Notably, dut is a single source file requiring a C11 compiler for installation. The benchmarks show its speed against programs like du, dust, and dua, highlighting its performance benefits on SSDs and revealing potential issues with HDD performance due to ordering discrepancies in access patterns.
https://codeberg.org/201984/dut