====== Linux du ====== * 디렉토리가 차지하는 용량을 보여준다. * [[linux:ncdu|ncdu]] * [[linux:dust|dust]] * [[linux:diskonaut|diskonaut]] * [[https://github.com/nachoparker/dutree|nachoparker/dutree: a tool to analyze file system usage written in Rust]] # 사람이 읽기 좋은 용량 표기 du -h # 바로 아래 자식 디렉토리의 용량만 보여주기. 숫자가 자식의 깊이 단계 du -h -d 1 # 혹은 -d 가 안되면 du -h --max-depth=1 # 오직 현재 파티션에 속하는 자식 디렉토리의 용량만 보여주기 du --human-readable --max-depth=1 --one-file-system # 혹은 현재 디렉토리 바로 아래 파일, 디렉토리들의 용량만 보여줌 du -sh * # dot directory 포함해서 총합까지 보여줌 du -sch .[!.]* * # dot directory 포함하고 용량별 정렬까지 더 나은 방법 du -ahd1 | sort -h