"
epel 저장소 설치 후 yum install -y ncdu 해도 되나, 여기에서는 컴파일함.
1. 필수 라이브러리 설치
dnf install -y gcc* ncurses-devel
2. 소스 다운로드 및 설치
cd /usr/local/src wget https://dev.yorhel.nl/download/ncdu-1.14.1.tar.gz tar zxvf ncdu-1.14.1.tar.gz cd ncdu-1.14.1 ./configure make make install
3. 링크 걸기(기본 경로 /usr/local/bin/ncdu)
ln -s /usr/local/bin/ncdu /usr/bin/ncdu
4. ncdu 사용 방법
[root@host-10-101-0-10 ncdu-1.14.1]# ncdu --help
ncdu <options> <directory>
-h,--help This help message
-q Quiet mode, refresh interval 2 seconds
-v,-V,--version Print version
-x Same filesystem
-e Enable extended information
-r Read only
-o FILE Export scanned directory to FILE
-f FILE Import scanned directory from FILE
-0,-1,-2 UI to use when scanning (0=none,2=full ncurses)
--si Use base 10 (SI) prefixes instead of base 2
--exclude PATTERN Exclude files that match PATTERN
-X, --exclude-from FILE Exclude files that match any pattern in FILE
-L, --follow-symlinks Follow symbolic links (excluding directories)
--exclude-caches Exclude directories containing CACHEDIR.TAG
--confirm-quit Confirm quitting ncdu
--color SCHEME Set color scheme
"