項目地址: 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能夠退出