makestatic/zdu
ZDU is a fast, multithreaded, cross-platform alternative to GNU `du` command.
ZDU is a fast, multithreaded, cross-platform alternative to GNU du
, written in Zig. It recursively scans directories and reports file counts, directory counts, and total disk usage.
Download from the pre-built static binaries for Linux, macOS, and Windows.
curl -sSL https://raw.githubusercontent.com/makestatic/zdu/master/scripts/install.sh | bash
$ git clone https://github.com/makestatic/zdu.git
$ cd zdu
$ make
$ sudo make install
$ zdu <path>
Example:
# current working directory
$ zdu .
Output:
...
./.zig-cache/o/9f7280af6858074430ef67b2128d12e3/build_zcu.o
./.zig-cache/o/aee36d8c5c7ccba1fb65caff314409d2/zdu_zcu.o
./.zig-cache/o/9f7280af6858074430ef67b2128d12e3/build
./.zig-cache/o/aee36d8c5c7ccba1fb65caff314409d2/zdu
./.zig-cache/o/bbaed4b8a94d4cfcc89cddb1634917f2/build_zcu.o
./.zig-cache/o/bbaed4b8a94d4cfcc89cddb1634917f2/build
================= ZDU Report =================
Entry Path : `.`
----------------------------------------------
Directory : 38
File : 71
Total Size : 226006729 bytes / 215 mb
==============================================
ZDU is licensed under the GNU General Public License v3 or later.