% 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

Static binaries
:   Convenient static binaries for Linux. Download, extract and run; no
    compilation or installation necessary:
    [i486](/download/ncdu-2.2.1-linux-i386.tar.gz) -
    [x86_64](/download/ncdu-2.2.1-linux-x86_64.tar.gz) -
    [ARM](/download/ncdu-2.2.1-linux-arm.tar.gz) -
    [AArch64](/download/ncdu-2.2.1-linux-aarch64.tar.gz).

Zig version (stable)
:   2.2.1 ([ncdu-2.2.1.tar.gz](/download/ncdu-2.2.1.tar.gz) - [changes](/ncdu/changes2) - requires Zig 0.9.0 or 0.9.1)

    See the [beta release announcement](/doc/ncdu2) for information about the
    motivation for the rewrite and some of the differences with the C version.

    Note that the [Zig language](https://ziglang.org/) 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](https://github.com/ziglang/zig/pull/11295) to fix a [possible
    crash](https://code.blicky.net/yorhel/ncdu/issues/192).

    For users on Zig 0.10.0: see [#213](https://code.blicky.net/yorhel/ncdu/issues/213).

C version (LTS)
:   1.18 ([ncdu-1.18.tar.gz](/download/ncdu-1.18.tar.gz) - [changes](/ncdu/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](https://code.blicky.net/yorhel/ncdu/) (and
    [through cgit](https://g.blicky.net/ncdu.git/) 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](http://www.perzl.org/aix/index.php?n=Main.Ncdu) -
[Alpine Linux](http://pkgs.alpinelinux.org/packages?name=ncdu) -
[ALT Linux](http://sisyphus.ru/en/srpm/ncdu) -
[Arch Linux](https://www.archlinux.org/packages/?q=ncdu) -
[CRUX](https://crux.nu/portdb/?q=ncdu&a=search) -
[Cygwin](https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ncdu) -
[Debian](http://packages.debian.org/ncdu) -
[Fedora](https://apps.fedoraproject.org/packages/ncdu) -
[FreeBSD](https://www.freebsd.org/cgi/ports.cgi?query=ncdu&stype=all) -
[Frugalware](http://frugalware.org/packages/?op=pkg&srch=ncdu&arch=all&ver=all) -
[Gentoo](https://packages.gentoo.org/packages/sys-fs/ncdu) -
[GNU Guix](https://guix.gnu.org/packages/N/) -
[NixOS](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/ncdu/default.nix) -
[OpenBSD](http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/ncdu/) -
[OpenWRT](https://openwrt.org/packages/pkgdata/ncdu) -
MacOS ([Fink](http://pdb.finkproject.org/pdb/package.php/ncdu) - [Homebrew](https://formulae.brew.sh/formula/ncdu) - [MacPorts](http://www.macports.org/ports.php?by=name&substr=ncdu)) -
[Puppy Linux](http://www.murga-linux.com/puppy/viewtopic.php?t=35024) -
[Solaris](http://www.opencsw.org/packages/ncdu) -
[Slackware](http://slackbuilds.org/repository/14.2/system/ncdu/) -
[Slax Linux](http://www.slax.org/modules.php?detail=ncdu) -
[Ubuntu](http://packages.ubuntu.com/search?searchon=sourcenames&keywords=ncdu) -
[Void Linux](https://voidlinux.org/packages/)

Packages for RHEL and (open)SUSE can be found on the
[Open Build Service](https://software.opensuse.org//download.html?project=utilities&package=ncdu).

Packages for NetBSD, DragonFlyBSD, MirBSD and others can be found on
[pkgsrc](http://pkgsrc.se/sysutils/ncdu).

A port to z/OS is available [here](https://dovetail.com/community/ncdu.html).

## Similar projects

- [Duc](http://duc.zevv.nl/) - Multiple user interfaces.
- [gt5](http://gt5.sourceforge.net/) - Quite similar to ncdu, but a different approach.
- [gdu](https://github.com/dundee/gdu) - Go disk usage analyzer inspired by ncdu.
- [dua](https://github.com/Byron/dua-cli) - Rust disk usage analyzer.
- [godu](https://github.com/viktomas/godu) - Another Go disk usage analyzer, with a slightly different browser UI.
- [tdu](http://webonastick.com/tdu/) - Another small ncurses-based disk usage visualization utility.
- [tdu](https://bitbucket.org/josephpaul0/tdu) - Go command-line tool with ncdu JSON export.
- [TreeSize](http://treesize.sourceforge.net/) - GTK, using a treeview.
- [Baobab](http://www.marzocca.net/linux/baobab.html) - GTK, using pie-charts, a treeview and a treemap. Comes with GNOME.
- [GdMap](http://gdmap.sourceforge.net/) - GTK, with a treemap display.
- [Filelight](http://www.methylblue.com/filelight/) - KDE, using pie-charts.
- [KDirStat](http://kdirstat.sourceforge.net/) - KDE, with a treemap display.
- [QDiskUsage](http://qt-apps.org/content/show.php/QDiskUsage?content=107012) - Qt, using pie-charts.
- [xdiskusage](http://xdiskusage.sourceforge.net/) - FLTK, with a treemap display.
- [fsv](http://fsv.sourceforge.net/) - 3D visualization.
- [Philesight](http://zevv.nl/play/code/philesight/) - Web-based clone of Filelight.
- [psHFO](https://github.com/FrankieDevOp/psdu) - Human-friendly du for PowerShell.
