项目地址: https://dev.yorhel.nl/ncduc++
Ncdu (NCurses Disk Usage) 是一个基于 Ncurses 库的 du 命令的界面。它经过你们熟知的 du 命令,为用户提供一个快速且容易被使用的界面。它能够显示磁盘使用的百分比,且容许你使用 ncurses 库的方式在目录之间导航。shell
# wget https://dev.yorhel.nl/download/ncdu-1.14.1.tar.gz # cd ncdu-1.14.1 # ./configure -prefix=/usr/local # make # make install
一、config时报错
configure: error: required header file not foundui
# yum -y install ncurses ncurses-devel
二、make时报错spa
make: *** No targets specified and no makefile found. Stop.3d
#yum install gcc gcc-c++ autoconf automake -y
一、终端下直接使用ncdu就能够使用code
打开会有一个扫描,就是扫描你当前文件目录的大小,而且自动会把目录从大到小排序blog
二、能够后根目录进行查看排序
例:ncdu /homeci
三、快捷键get
最后输入q能够退出