Live data from Hacker News

Ncdu – NCurses Disk Usage

dev.yorhel.nl

11–20 of 168 posts

Re: Ncdu – NCurses Disk Usage

#12
ncdu is fabulous. I used it a while back on my 2009 Mac mini and recovered 40GB of disk space. 8GB of this was in just four folders: ~/Library/Logs/CrashReporter/MobileDevice, /private/var/db/systemstats, /System/Library/Caches/com.apple.coresymbolicationd, and /Library/Caches/com.apple.iconservices.store.

Re: Ncdu – NCurses Disk Usage

#13
post #8

I never knew about this tool, but it looks quite useful--much better than just using df. The only thing I wish it had was a squarified treemap view of disk space. There was an old graphical tool for Windows called SequoiaView that I used to use years ago, and I've never found a worthy replacement for it on Linux or MacOS.

sequoiaview looks like a clone of kdirstat, which is available on all platforms.

Re: Ncdu – NCurses Disk Usage

#17

Nice GUI to `du -h --max-depth=1 .` or `du --max-depth=1 . | sort -n -r`

The other big advantage over just being a gui is that it Scans the filesystem ahead of time and keeps the data across your navigation into directories.

du will have to rescan as you traverse down the tree

Re: Ncdu – NCurses Disk Usage

#18
Interesting. I’ve just used df-m | sort -n and walked the tree from the CLI for so long.

I’ve also used windirstat (I think that’s what it was called) years ago on Windows and Disk Inventory X on MacOS graphically.

This seems like a nice in between that could replace both methods for me. I’ll have to try.

The GUI bunch of squares is really only useful when you can hover with a mouse and would be clunky in a TUI even if you could render it. And the FS structure isn’t immediately obvious, so I find myself wasting time wandering hovering over big files and globs of little ones.

I really like to avoid a mouse when I can unless it’s really useful.

Re: Ncdu – NCurses Disk Usage

#19
post #18

Interesting. I’ve just used df-m | sort -n and walked the tree from the CLI for so long. I’ve also used windirstat (I think that’s what it was called) years ago on Windows and Disk Inventory X on MacOS graphically. This seems like a nice in between that could replace both methods for me. I’ll have to try. The GUI bunch of squares is really only useful when you can hover with a mouse and would be clunky in a TUI even…

FYI I recently discovered sort —-human is a thing so you can keep the K/M/G units if you want to.

However I use ncdu all the time.

Re: Ncdu – NCurses Disk Usage

#20

If you like ncdu, you might also like dua[0]. You can run `dua i` to get an interface similar to ncdu, and can also run `dua` to list file sizes in the current directory, similar to `du`. Or `dua filename ` to get the size of a given file. [0] https://github.com/Byron/dua-cli

The UI is not as good but it’s multi threaded and much faster.
Post reply on HN