W3cubDocs

/Nushell

du for core

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:

input output
nothing table

Examples

Disk usage of the current directory

>du

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/du.html