ncdu

ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.


Interactive usage

After connecting to Bessemer (see Establishing a SSH connection), start an interactive session with the srun --pty bash -i command.

The latest version of ncdu (currently version 1.15.1) is made available with the command:

$ module load ncdu/1.15.1-GCCcore-9.3.0

After this any of the ncdu commands can be run from the terminal prompt. The available commands can be obtained using:

$ ncdu --help

ncdu is an excellent tool for determining what files and folders are consuming your storage quota in the file storage areas. The example command below instructs ncdu to scan your home directory and will then show an interactive summary of storage usage by file and folder.

$ ncdu $HOME

Screenshots of the program in use can be found on the following page: https://dev.yorhel.nl/ncdu/scr


Installation notes

Installation method

ncdu version 1.15.1 was installed using Easybuild 4.7.0, build details can be found in $EBROOTNCDU/easybuild with the module loaded.


Testing

Testing has been conducted by running an interactive session and scanning a directory with success.


Modulefiles

The module file is on the system at /opt/apps/testapps/el7/modules/staging/all/ncdu/1.15.1-GCCcore-9.3.0.lua.