Tracking down and deleting large files that eat your disk space could be a little tricky and time-consuming with traditional GNU tools like du, find and rm.

Luckily there is a tiny program called ncdu (NCurses Disk Usage) that shows a list of files and directories in the current directory.

By default the list in ncdu is sorted by the size of the file/directory. For directories, the program shows a total disk usage recursively.

Ncdu uses ncurses library to provide a simple text-based user interface. Just use arrow keys to navigate: Up and down arrows moves the cursor, left arrow goes to the parent directory and right arrow access the selected sub-directory. You can delete files and directories just by pressing a D key.

Ncdu comes with many Linux distributions. For example, in Debian and Debian-based distros you can install it with APT:

apt install ncdu

Of course there is a tarball and a git repository available at the ncdu’s website if you like to compile it by yourself. Ncdu should be able to run in any POSIX-like system with ncurses library installed. It’s written in C by Yoran Heling and published under MIT License.