
/で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.
パターンはおおよそ名前おおよそより道。