du for core

Find disk usage sizes of specified items.

Signature

> du (path) --all --deref --exclude --max-depth --min-size

Parameters

  • path: starting directory
  • --all (-a): Output file sizes as well as directory sizes
  • --deref (-r): Dereference symlinks to their targets for size
  • --exclude {glob}: Exclude these file names
  • --max-depth {int}: Directory recursion limit
  • --min-size {int}: Exclude files below this size

Examples

Disk usage of the current directory

> du