スキャン時に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.

パターンはおおよそ名前おおよそより

おすすめ記事