2fm.dev - TwoFullMoons

ncdu - NCurses Disk Usage

Disk space management is a critical task for any Linux user or administrator. Enter ncdu (NCurses Disk Usage) - an incredibly useful interactive tool that combines the functionality of commands like du and df with a user-friendly interface.

What is 'ncdu'?

ncdu is a disk usage analyzer with an NCurses interface. It provides a clear, interactive view of your directory structure and file sizes, making it easy to identify what's consuming your valuable disk space.

Key Features

Basic Usage

ncdu /path/to/directory

If no path is specified, ncdu will analyze the current directory.

While using ncdu, you can:

Why Choose 'ncdu'?

Unlike command-line tools like du that provide static output, ncdu offers an interactive experience that makes it significantly easier to track down space-hogging files and directories. It's particularly useful when:

Installation

On most Linux distributions, ncdu isn't installed by default, but it's readily available:

# Debian/Ubuntu
sudo apt install ncdu

# Fedora
sudo dnf install ncdu

# Arch Linux
sudo pacman -S ncdu

The next time you're wondering where all your disk space went, remember that ncdu offers a simple, efficient way to visualize and manage your storage resources!