[리눅스] 현재 디렉토리 내 디렉토리 별 용량 확인

du -hsx ./* | sort -rh | head -10

지정 디렉토리를 제외하려면 –exclude=volume1 이런 식으로 뒤에 추가하면 된다.

du -hsx ./* | sort -rh | head -10 --exclude=volume1 --exclude=volume2 --exclude=volume3

Leave a Comment