Ever found yourself stuck trying to understand the disk space consumption on your Ubuntu system?

If so, youll want to check out the ncdu command which can help resolve this usage mystery.

This utility helps you to analyze the disk usage of any directory.

Hands typing on a laptop

Lt’s xplor some practical us cass of th ncdu command.

Updating packages list on Ubuntu

Installing ncdu on Ubuntu

Checking the version of ncdu on Ubuntu

Running the ncdu command on Ubuntu

Displaying the subdirectory details with ncdu on Ubuntu

Navigating to a particular subdirectory on Ubuntu

Initiating disk scanning of the root directory with ncdu

Disk scanning of the root directory has been done

Displaying specific directory disk usage details with ncdu