![스캔할 때 ncdu에서 여러 디렉터리를 제외하는 방법](https://linux55.com/image/176584/%EC%8A%A4%EC%BA%94%ED%95%A0%20%EB%95%8C%20ncdu%EC%97%90%EC%84%9C%20%EC%97%AC%EB%9F%AC%20%EB%94%94%EB%A0%89%ED%84%B0%EB%A6%AC%EB%A5%BC%20%EC%A0%9C%EC%99%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95.png)
/에서 ncdu를 사용하여 디스크 사용량을 확인하고 싶지만 /home/
및 /media/
. 하지만 내 명령은 ncdu / --exclude /home/ --exclude /media/
여전히 이러한 디렉터리를 검색합니다.
답변1
경로에서 슬래시를 생략하면 다음과 같이 작동합니다.
ncdu / --exclude home --exclude media
문서에는 --exclude가 언급되어 있습니다.
Exclude files that match PATTERN. The files will still be displayed
by default, but are not counted towards the disk usage statistics.
패턴은 대략이름대략보다는길.