2

NCurses Disk Usage

 1 year ago
source link: https://dev.yorhel.nl/ncdu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

menu

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.1 (ncdu-2.2.1.tar.gz info.svg - 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: i486 info.svg, x86_64 info.svg, ARM info.svg and AArch64 info.svg. Download, extract and run; no compilation or installation necessary.

For users on Zig 0.10.0: see #213.

C version (LTS)

1.18 (ncdu-1.18.tar.gz info.svg - 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

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.

all lefts and rights reversed


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK