Live data from Hacker News

Ncdu – NCurses Disk Usage

dev.yorhel.nl

1–10 of 168 posts

Re: Ncdu – NCurses Disk Usage

#2
This tool has been pretty invaluable to me over the years in diagnosing/tracing high disk usage, particularly relevant for pypi and npm packages that were needlessly shipping huge artifacts.

Re: Ncdu – NCurses Disk Usage

#3
This program is extremely useful. I have recently performed a recovery on a bricked Microsoft Surface and was able to extract all the useful files from a Windows home directory and quickly discard all the libraries, caches, and so on. By seeing the folders that take up the most space you can easily determine what the juicy bits in a folder hierarchy are. Huge time saver.

Using GrandPerspective on macOS was a similar revelation, but ncdu being keyboard driven and allowing you to quickly launch a shell inside each folder and then apply find -exec there quickly is a productivity boost on yet another level.

Re: Ncdu – NCurses Disk Usage

#7

If you use a Btrfs filesystem with snapshots, I can recommend Btdu as an alternative. Advantage: Can handle duplicate files (snapshots), which however only occupy 1x disk space. https://github.com/CyberShadow/btdu

Have used btdu - very useful on Btrfs systems with lots of snapshots.

Re: Ncdu – NCurses Disk Usage

#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.

Re: Ncdu – NCurses Disk Usage

#9
Such a great tool. Thank you!

On a Mac, I've been using OmniDiskSweeper for years, but this can be run in a single directory and on my Linux machines as well. Fantastic!

And look, it didn't ask me to sign up for an account, and it didn't require me to consent to usage data collection with a huge Privacy Policy attached! How is that possible? (still dealing with this morning's scars from trying, and failing to run the warp terminal)

Post reply on HN