To get started with NCDU, load the module using the following command:
module load ncdu/1.14
Once the module has been loaded, it can be used to easily show the size of all files within a directory:
The line above uses Ncdu to rank all of the files within the
my_directory directory. Your window should change to show a loading screen (if the directory doesn't have a lot in it, you may not even see this screen):
Once Ncdu has finished loading, you will see a result like this:
The files will be ordered with the largest file at the top and the smallest file at the bottom. The bottom left corner shows the
Total disk usage (which in this case is 25.5 KiB). To quit out of this display, simply press q on your keyboard.