HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ncdu — Disk usage analyzer with an ncurses interface. More information: <https://dev.yorhel.nl/ncdu/man>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
usagecommanddiskncducliwithncursesanalyzer

Problem

How to use the ncdu command: Disk usage analyzer with an ncurses interface. More information: <https://dev.yorhel.nl/ncdu/man>.

Solution

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}}'

Code Snippets

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}}'

Context

tldr-pages: common/ncdu

Revisions (0)

No revisions yet.