NCurses Disk Usage
Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful tool even on regular desktop systems. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.
Download
- Zig version (stable)
-
2.2 (File: ncdu-2.2.tar.gz
Size: 54.6 KiB (55.903 bytes)
PGP: ncdu-2.2.tar.gz.asc
MD5:b59542803babb907678005be8b46e26f
SHA1:e2b67b945211d401699e0cf1950d76b368c72af8
SHA-256:79289f2f1af181443b338598269555175b756665b72aacc6a810f9352e0204dencdu-2.2.tar.gz - changes - requires Zig 0.9.0 or 0.9.1)See the beta release announcement for information about the motivation for the rewrite and some of the differences with the C version.
Note that the Zig language and compiler are still very much unstable. This version of ncdu will only work with the version of the Zig compiler noted above. Use the ncdu 1.x branch if this does not work for you or if you need a more stable compilation environment.
Linux users/distros may want to apply this patch to Zig to fix a possible crash.
Convenient static binaries for Linux: File: ncdu-2.2-linux-i386.tar.gz
Size: 283.9 KiB (290.702 bytes)
PGP: ncdu-2.2-linux-i386.tar.gz.asc
MD5:ea2512fa80232dbc55ec75c08dff8686
SHA1:f5f52b9d77fcc2c6ea145a60a3b4f65b835d7284
SHA-256:f7aeb15f4ce7ada8cea154706ac2d1a7404a18cc9768a1d0d2cd2f9e6fbbff09i486 , File: ncdu-2.2-linux-x86_64.tar.gz
Size: 315.5 KiB (323.041 bytes)
PGP: ncdu-2.2-linux-x86_64.tar.gz.asc
MD5:f8281443d96c0328c69cd10d7a55d0b1
SHA1:0ad965fa9b10ff09cd15f1fbdf902fd940d24416
SHA-256:e66ea051cc1b1f8173fb4aca3f955e11f00813a9139546ca5dbf60f6f3c3eb6ex86_64 , File: ncdu-2.2-linux-arm.tar.gz
Size: 276.5 KiB (283.173 bytes)
PGP: ncdu-2.2-linux-arm.tar.gz.asc
MD5:9305110c6a0597bac24d1e46194f9c21
SHA1:ba8aa703e8e04b89f4799cffbd5d2606e80fd56c
SHA-256:a45ef2d9405bf535d888aedc9a6e36c4866993bd07a940acadc19520acd0cbfaARM and File: ncdu-2.2-linux-aarch64.tar.gz
Size: 298.5 KiB (305.715 bytes)
PGP: ncdu-2.2-linux-aarch64.tar.gz.asc
MD5:6484de3cf69b7febaa52c396ab216936
SHA1:bbf84feae233236ca1f85a3cba67f6fde78d26b1
SHA-256:2a455b91ee4c10336c1a360b59899c614fc4ab2c408c75ea8859468c9e7061e3AArch64 . Download, extract and run; no compilation or installation necessary. - C version (LTS)
-
1.17 (File: ncdu-1.17.tar.gz
Size: 153.5 KiB (157.187 bytes)
PGP: ncdu-1.17.tar.gz.asc
MD5:0a872dbda2d79e45937e22d5c97c01d4
SHA1:bcd033f8a9e3cf5da131ee7a2cccf1e27ffa7a57
SHA-256:810745a8ed1ab3788c87d3aea4cc1a14edf6ee226f764bcc383e024ba56adbf1ncdu-1.17.tar.gz - changes)Lags a bit behind on the 2.x version in terms of features and performance, but is still being maintained and perfectly usable.
- Development version
-
The most recent code is available on a git repository and can be cloned
with
git clone git://g.blicky.net/ncdu.git/. The repository is also available for online browsing (and through cgit if you prefer that). The ‘master’ branch represents the C version, the Zig version can be found in the ‘zig’ branch. - License
- MIT.
Packages and ports
Ncdu has been packaged for quite a few systems, here’s a list of the ones I am aware of:
AIX - Alpine Linux - ALT Linux - Arch Linux - CRUX - Cygwin - Debian - Fedora - FreeBSD - Frugalware - Gentoo - GNU Guix - NixOS - OpenBSD - OpenWRT - MacOS (Fink - Homebrew - MacPorts) - Puppy Linux - Solaris - Slackware - Slax Linux - Ubuntu - Void Linux
Packages for RHEL and (open)SUSE can be found on the Open Build Service.
Packages for NetBSD, DragonFlyBSD, MirBSD and others can be found on pkgsrc.
A port to z/OS is available here.
Similar projects
- Duc - Multiple user interfaces.
- gt5 - Quite similar to ncdu, but a different approach.
- gdu - Go disk usage analyzer inspired by ncdu.
- dua - Rust disk usage analyzer.
- godu - Another Go disk usage analyzer, with a slightly different browser UI.
- tdu - Another small ncurses-based disk usage visualization utility.
- tdu - Go command-line tool with ncdu JSON export.
- TreeSize - GTK, using a treeview.
- Baobab - GTK, using pie-charts, a treeview and a treemap. Comes with GNOME.
- GdMap - GTK, with a treemap display.
- Filelight - KDE, using pie-charts.
- KDirStat - KDE, with a treemap display.
- QDiskUsage - Qt, using pie-charts.
- xdiskusage - FLTK, with a treemap display.
- fsv - 3D visualization.
- Philesight - Web-based clone of Filelight.
- psHFO - Human-friendly du for PowerShell.