Home Explore Blog CI



nushell

commands/docs/du.md
236346699e284ddbaf95d3cc5b0617cf2e14e7b69a696ddd0000000300000400
---
title: du
categories: |
  filesystem
version: 0.104.0
filesystem: |
  Find disk usage sizes of specified items.
usage: |
  Find disk usage sizes of specified items.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `du` for [filesystem](/commands/categories/filesystem.md)

<div class='command-title'>Find disk usage sizes of specified items.</div>

## 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

## Parameters

 -  `...rest`: Starting directory.


## Input/output types:

| input   | output |
| ------- | ------ |
| nothing | table  |
## Examples

Disk usage of the current directory
```nu
> du

```

Chunks
fd268613 (1st chunk of `commands/docs/du.md`)
Title: du Command: Find Disk Usage Sizes
Summary
The `du` command is used to find disk usage sizes of specified items. It accepts flags for dereferencing symlinks, getting underlying directories and files, excluding file names, setting directory recursion limit, and excluding files below a specified size. It takes a list of starting directories as input and outputs a table of disk usage information.