SSD

Ncdu – interactive terminal disk usage analyzer

Ncdu (NCurses Disk Usage) is a terminal-based disk usage analyzer that helps users find large files and directories. It provides an interactive alternative to examining lengthy output from the traditional du command.

The application is particularly useful for remote system administration. A user connected to a server through SSH can inspect directory sizes and move through the filesystem without needing a graphical desktop. Ncdu can also be used on local systems where a quick overview of storage consumption is required.

After scanning a directory tree, Ncdu presents its contents in a navigable list. Directory sizes, percentages and graphical indicators make it easier to distinguish large storage consumers from smaller files. Users can inspect nested directories and return to their parent directories without launching another scan for each location.

The software also supports exporting scan results, allowing directory information to be examined later or transferred between systems.

This is free and open source software.

Key Features

  • Interactive terminal interface for exploring directory sizes and file usage.
  • Navigate directory hierarchies using keyboard controls.
  • Sort entries by size, name and other available criteria.
  • Display relative disk usage as percentages, graphical bars or both.
  • Switch between allocated disk usage and apparent file sizes.
  • Identify files with multiple hard links and account for shared storage.
  • Exclude specified directories and patterns during scans.
  • Restrict scanning to a single filesystem.
  • Parallel directory scanning with configurable thread counts.
  • Export and import scan results using JSON.
  • Binary export format with compression and support for very large directory trees.
  • Display file and directory information, including item counts.
  • Delete selected files or directories after confirmation.
  • Customisable display settings, including colour schemes.
  • Cross-platform support – runs on Linux and macOS.

Website: dev.yorhel.nl/ncdu
Support:
Developer: Yoran Heling
License: MIT License

Ncdu in action

ncdu is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Disk Usage Utilities
QDirStatExcellent Qt-based directory statistics
FilelightCreates an interactive map to visualise disk usage
BaobabAlso known as Disk Usage Analyser
ageduUtility for tracking down wasted disk space
SquirrelDiskBills itself as "the easiest app you will ever use to detect huge files"
K4DirStatKDE Directory Statistics sums up disk usage for directory trees
KrusaderFile manager with built-in disk usage functionality
SpaceManTreemap disk usage analyzer
xdiskusageLight and frugal utility
MX CleanupGUI for system cleanup and maintenance
crossdirstatFile and directory statistics written using Electron

Read our verdict in the software roundup.

du alternativesProgramming LanguageLicense
dustRustApache License 2.0
dufGoMIT License
DucCGNU Lesser General Public License v3
NcduCGNU GPL v2.0 License
gduGo MIT License
cullGoMIT License
duaRustMIT License
erdtreeRustMIT License
pduRustApache License 2.0
vizexPythonMIT License
goduGo MIT License
dutreeRustGNU General Public License v3
spaceRustMIT License
daryaRustGNU General Public License v3.0
diskusRustMIT License or Apache License 2.0
NoxDirGoMIT License
mcduRustMIT License
dirstat-rsRustMIT License
diskonautRustMIT License
bonsaiC++GNU General Public License v3.0
diskardRustMIT License or Apache License 2.0
cduPerlGNU General Public License v2.0
tduGoGNU General Public License v2
duvizPythonMIT License
dutCGNU General Public License v3.0
whalespotterRustMIT License
snRustBSD 3-Clause “New” or “Revised” License

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted