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.1.1 (File: ncdu-2.1.1.tar.gz
Size: 51.3 KiB (52.516 bytes)
PGP: ncdu-2.1.1.tar.gz.asc
MD5:4293d0767a1f2d83d3e418996909c7d8
SHA1:bac1bc36a4776c1dde22af9042e325863313de3e
SHA-256:d6c2374ca50d40b6211346972a2e89c9601172fd0704d885eda5b1e09a2a48edncdu-2.1.1.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.1.1-linux-i386.tar.gz
Size: 299.1 KiB (306.242 bytes)
PGP: ncdu-2.1.1-linux-i386.tar.gz.asc
MD5:8a460bd8f9a20e3c08a5c3803b546bc7
SHA1:5de364263105de4c356896d291b937286b02ec28
SHA-256:816c893fdd50591c29ea13bdc93a9ac6cc279dd0ffc0df929c321a87f0e0e2f9i486 , File: ncdu-2.1.1-linux-x86_64.tar.gz
Size: 292.3 KiB (299.303 bytes)
PGP: ncdu-2.1.1-linux-x86_64.tar.gz.asc
MD5:c5fb5ae94cc7fd34878f1cf0dbe0cd30
SHA1:e13b0282808218aa43bbf8ea5698b9c3b4bd6b2e
SHA-256:4a8fdfe634b63b86934bee4e5e6956c9309aab4ef86de08d5fa93be1344c765cx86_64 , File: ncdu-2.1.1-linux-arm.tar.gz
Size: 288.5 KiB (295.452 bytes)
PGP: ncdu-2.1.1-linux-arm.tar.gz.asc
MD5:984c9616768a6af122a2ab7130a2d117
SHA1:fff154b5ebe0ac576a86d3f8224a73ecb6267092
SHA-256:7a4e3cb3158346d8cc1f4f1eac322019b1276baf7ca81e66833353933f89df48ARM and File: ncdu-2.1.1-linux-aarch64.tar.gz
Size: 271.8 KiB (278.317 bytes)
PGP: ncdu-2.1.1-linux-aarch64.tar.gz.asc
MD5:37dee205517d41f52e2c66fc574d9f19
SHA1:da8786f3f7d5bada7365ef9018518b1833542d4d
SHA-256:a6b53b9741362567b8cee7fd6a95b76717100d31e6c070d48d7342572796421cAArch64 . Download, extract and run; no compilation or installation necessary.- C version (LTS)
1.16 (File: ncdu-1.16.tar.gz
Size: 146.2 KiB (149.705 bytes)
PGP: ncdu-1.16.tar.gz.asc
MD5:8846e965c6c008d572cb42ad3a56400b
SHA1:0ebff95373a9b7e7976b22bc763043e40d12c62b
SHA-256:2b915752a183fae014b5e5b1f0a135b4b408de7488c716e325217c2513980fd4ncdu-1.16.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.