ncdu的官方网址如下:http://dev.yorhel.nl/ncdu
安装ncdu
目前的最新版本是1.6,下载地址:http://soft.vpser.net/manage/ncdu/ncdu-1.6.tar.gz
下载后执行:
tar zxvf ncdu-1.6.tar.gz
cd ncdu-1.6/
./configure
make && make install
启动路径:/usr/local/bin/ncdu
安装过程遇到错误解决:
提示:
configure: error: no acceptable C compiler found in $PATH
请安装gcc编译器:
#yum -y install gcc gcc-c++
提示:
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
configure: error: required header file not found
请安装:
yum -y install ncurses ncurses-devel
资料:http://www.vpser.net/manage/ncdu.html
本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1841454