du

For filesystem.

Find disk usage sizes of specified items.

Command Type

built-in

Signature

> du {flags} ...rest

Flags

  • --deref, -r: Dereference symlinks to their targets for size.
  • --long, -l: Get underlying directories and files for each entry.
  • --exclude, -x {glob}: Exclude these file names.
  • --max-depth, -d {int}: Directory recursion limit.
  • --min-size, -m {int}: Exclude files below this size.
  • --all, -a: Include hidden files if ’*’ is provided.

Parameters

  • ...rest: Starting directory.

Input/output types:

input output
nothing table

Examples

Disk usage of the current directory.

> du

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.