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
Share This Post

About Author: Curtis K

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