2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: du
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-02-18 21:55:22 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Find disk usage sizes of specified items.
|
2020-02-18 21:55:22 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-02-18 21:55:22 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> du (path) --all --deref --exclude --max-depth --min-size```
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `path`: starting directory
|
|
|
|
- `--all`: Output file sizes as well as directory sizes
|
|
|
|
- `--deref`: 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
|
2020-06-23 20:21:47 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> du
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
2022-02-14 03:22:51 +01:00
|
|
|
|