스캔할 때 ncdu에서 여러 디렉터리를 제외하는 방법

스캔할 때 ncdu에서 여러 디렉터리를 제외하는 방법

/에서 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.

패턴은 대략이름대략보다는.

관련 정보