ncdu - ncurses disk usage

ncdu directory_name
ncdu is a text-mode ncurses-based disk usage analyzer. Useful for when you want to see where all your space is going. For a single flat directory it isn't more elaborate than an du|sort or some such thing, but this analyzes all directories below the one you specify so space consumed by files inside subdirectories is taken into account. This way you get the full picture. Features: file deletion, file size or size on disk and refresh as contents change. Homepage:
Sample Output
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help                     
    4.1MB [##########] /ssh
    3.8MB [######### ] /brltty                                                  
    1.0MB [##        ] /htdig
  700.0kB [#         ] /acpi
  680.0kB [#         ] /X11
  648.0kB [#         ] /texmf
  528.0kB [#         ] /mono
  508.0kB [#         ] /init.d
. 504.0kB [#         ] /ssl
  484.0kB [#         ] /kde3
  400.0kB [          ] /apache2

By: bwoodacre
2009-06-09 00:02:48

3 Alternatives + Submit Alt

What Others Think

I have created and RPM for CentOS 5.2, probably works on 5.3 as well. 64bit
DaveQB · 687 weeks and 4 days ago
I have created an RPM...rather.
DaveQB · 687 weeks and 4 days ago
Nice application, thanks for sharing!
Minoru · 687 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: