Forrest logo
back to the ncdu tool

ncdu:tldr:59a0e

ncdu: Analyze the current working directory.
$ ncdu
try on your machine

The ncdu command is a command-line utility used for disk usage analysis. It stands for "NCurses Disk Usage," indicating that it provides a text-based user interface through the NCurses library.

When executed, ncdu scans the specified directory or filesystem and displays a hierarchical view of all the files and directories, along with their respective sizes. It provides an interactive interface that allows users to navigate through the directory structure and view disk usage statistics.

The command also calculates the total disk space used by the selected directory or filesystem, as well as the percentages of disk space occupied by each file or directory. It is useful for identifying files or directories consuming significant disk space, which can help in locating and managing large or unnecessary files that may be taking up valuable storage.

Additionally, ncdu offers features such as sorting files by size, filtering specific file types, and deleting or moving files directly from its interface. These capabilities make it a powerful tool for disk space management and decluttering.

Overall, the ncdu command provides a comprehensive and interactive way to visualize and analyze disk usage, aiding users in understanding their storage consumption patterns and making informed decisions to optimize disk space.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ncdu tool