du for filesystem

Find disk usage sizes of specified items.

Signature

> du {flags} (path)

Flags

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

Parameters

  • path: Starting directory.

Input/output types:

inputoutput
nothingtable

Examples

Disk usage of the current directory

> du