NCurses Disk Usage

Intro

ncdu (NCurses Disk Usage) is a curses-based version of the well-known 'du', and provides a fast way to see what directories are using your disk space.

It's aimed to be run on a remote server where you don't have an entire graphical setup, but have to do with a simple SSH connection. 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.

Installation

  1. Download the latest source tarball

     wget http://dev.yorhel.nl/download/ncdu-1.11.tar.gz
    
  2. Extract the downloaded archive

     tar xvzf ncdu-1.11.tar.gz
    
  3. Make the newly extracted folder your working directory

     cd ncdu-1.11
    
  4. Configure the installation

     ./configure --prefix=$HOME
    
  5. Begin compilation of the application using the settings used in the previous step

     make
    
  6. Install the application

     make install
    
  7. Steps 5 and 6 can take some time, so just wait for it to complete.

  8. (Optional) Remove the source code:

     cd ..
     rm -r ncdu-1.11*
    

Usage

  1. Add the bin directory to your PATH (if you've done this previously, you do not need to do it again)

     echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
    
  2. Start the application

    To scan and browse the directory you're currently in, all you need is a simple:

     ncdu
    

    To scan and browse a certain directory:

     ncdu /path/to/directory
    
  3. For more usage examples and documentation check out: ncdu's documentation