Files
cheatsheet-tldr/tldr/ncdu
2025-10-06 00:19:32 +00:00

30 lines
546 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ncdu
> Disk usage analyzer with an ncurses interface.
> More information: <https://dev.yorhel.nl/ncdu/man>.
- Analyze the current working directory:
`ncdu`
- Colorize output:
`ncdu --color {{dark|off}}`
- Analyze a given directory:
`ncdu {{path/to/directory}}`
- Save results to a file:
`ncdu -o {{path/to/file}}`
- Exclude files that match a pattern, argument can be given multiple times to add more patterns:
`ncdu --exclude '{{*.txt}}'`