15 February 2013

339. Compiling ncdu on ROCKS 5.4.3/Centos 5.6

du is nice, but ncdu gives a better overview. Nothing odd about building it though:

mkdir ~/tmp
cd ~/tmp
wget http://dev.yorhel.nl/download/ncdu-1.9.tar.gz
tar xvf ncdu-1.9.tar.gz
cd ncdu-1.9/
sudo mkdir /share/apps/tools/ncdu -p
sudo chown $USER /share/apps/tools/ncdu
./configure --prefix=/share/apps/tools/ncdu
make
make install
echo 'export PATH=$PATH:/share/apps/tools/ncdu/bin' >> ~/.bashrc
source ~/.bashrc

Start by running
ncdu

2 comments:

  1. wonderfully helpful - looked all over for a suitable strategy with no success. your solution worked perfectly & satisfied my enormous blindspot surrounding files size and disk usage!

    may all your days be both numerous, and prosperous ;)

    ReplyDelete
    Replies
    1. Happy it was useful to you. There's also a poor man's ncdu, which is
      ls --directory * |xargs -I {} du -hs {}

      It summarizes each immediate subdirectory.

      Delete