The NCDU command is an enhancement to the functionality of traditional du commands, where you can calculate file and directory sizes and sort by size or file name without having to enter a large number of commands like Du. It is based on the ncurses library and therefore supports many rich interactive commands
NCDU's official website is as follows: HTTP://DEV.YORHEL.NL/NCDU
Installing NCDU
Currently the latest version is 1.6,:http://soft.vpser.net/manage/ncdu/ncdu-1.6.tar.gz
After download, execute:
Tar zxvf ncdu-1.6.tar.gz
CD ncdu-1.6/
./configure
Make && make install
Boot path:/USR/LOCAL/BIN/NCDU
The installation process encountered an error resolution:
Tips:
Configure:error:no acceptable C compiler found in $PATH
Please install the GCC compiler:
#yum-y Install gcc gcc-c++
Tips:
Checking Ncurses.h usability ... no
Checking Ncurses.h presence ... no
Checking for ncurses.h ... no
Configure:error:required header File not found
Please install:
Yum-y Install ncurses Ncurses-devel
Profile: http://www.vpser.net/manage/ncdu.html
This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1841454
Disk directory Footprint Calculation sort Tool-NCDU