Command Line Tool of the Day: ncdu – an ncurses-based disk usage tool

1. What is ncdu?

ncdu (NCurses Disk Usage) is an ncurses-based disk usage tool. It provides a disk usage summary in a TUI (text user interface), and also allows you to navigate between directories.

2. How to install ncdu

In order to install ncdu, you will first need to enable the EPEL repo. Once the EPEL repo is installed, ncdu can be installed with following command:

yum install ncdu

3. How to use ncdu

To use ncdu, enter the following command:


Sample output:

CentOS Linux ncdu

CentOS Linux ncdu

  • Navigatation: use the arrow keys and return to enter a directory.
  • Sort by name: n
  • Sort by size: s
  • Toggle between graph/percent: g
Scan to Donate Bitcoin
Like this? Donate Bitcoin to at:
Bitcoin 14M4a7UHEX61VoHkyjj4dxbUBNGGz3hmhM
Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the creator of CentOS Blog. Please feel free to comment any suggestions, feedback or questions on my posts!