Hacker News new | past | comments | ask | show | jobs | submit login
Ohmu – View space usage in your terminal (github.com/paul-nechifor)
58 points by _1rt1 on Oct 12, 2015 | hide | past | favorite | 23 comments



I'm a huge fan of ncdu. The treemap looks cool, but I don't really see the benefit over ncdu. :) (which can be installed via

    brew install ncdu
on a mac.)


Yeah, the graphical effect of ohmu flashed me there for a second, but in the end I did install ncdu. ncdu is my replacement for "du -sh * | gsort -h" on OSX - with extra features such as traversing through directories, seeing empty files adhoc and deleting directories/files. I don't see the advantages of ohmu, except that it looks nice.


ncdu is good and super-useful, but this omhu is not only software, it is a work of art.


Doesn't work with python3 (which is the only python I use on my machine)

Why are people still building in 2.x? :#


Right now, it's mainly enthusiasts who use it. Industry still uses Python 2, as do most distros that ship. AWS Lambda has just added Python, picking 2 over 3.

While the Python Wall of Shame/Superpowers is the greenest it's ever been, the red panels are disproportionately used, even though you could argue many are dead, abandoned modules, they still end up presenting upgrade pain that many would rather avoid.

https://python3wos.appspot.com/


> Right now, it's mainly enthusiasts who use it. Industry still uses Python 2 [...]

You make it sound like you can't be an enthusiast while working in the industry. That's not true at all, but I don't want to argue about that.

But anyway, this project - ohmu - looks very much like something made by an enthusiast. So the question remains: why would people use Python 2 in their hobby side-projects?

Personally, I only switched very recently, with Python 3.5. I read release notes for each previous version and the improvements didn't convince me it's worth the effort to re-learn the language. The individual improvements and additions to the language didn't feel very important, but they do add up and with 3.5 the aggregate of all the new features finally made me switch.

Python 3 is a better language than Python 2, it just wasn't as much better as I wanted it to be. I suspect other programmers who still use (or used until not long ago) Python 2 think along the same lines. It's just that everyone has different view on how much Python 3 needs to improve on Python 2 to justify the switch.


Agree that Python 3.5 is a turning point. Async/await in the core language is HUGE, and really makes Python a great language for the future.

Tornado + py3.5 is a very easy and monster-performing platform.


The project may be older than you realize. I've got a disk usage project that I started around 2005, but it did not get onto indexes until a couple of years ago.


Yeah. Python3 is awesome, and we use it in new products wherever we can, but sometimes you have That One Legacy Library that you cannot replace easily, so Python2 it is for those projects.


Mostly because that's what ships with most distros that are in production use currently.


Arch, Fedora 23, FreeBSD, NixOS, and a few other lessers. http://distrowatch.com/search.php?pkg=Python&pkgver=3&distro...

Can we ever get Windows to Included it :(


For those of you who prefer using a GUI (and are using a windows computer): A similar program to Ohmu called "Spacesniffer" displays the space folders and files use, as well as free space in a treemap. It has helped me a lot to quickly see how big some folders are.

http://www.uderzo.it/main_products/space_sniffer/



I still use it.


Or, for Linux - Filelight: https://en.wikipedia.org/wiki/Filelight


or just ncdu on command line? :)

http://dev.yorhel.nl/ncdu


WinDirStat - https://en.wikipedia.org/wiki/WinDirStat

Started out as kDirStat for KDE in Linux.

I use ncdu and Ranger file manager 95%+ of the time.


For the Mac, GrandPerspective.


or Daisy Disk[0] which uses a sunburst representation[0] rather than a treemap.

[0] https://www.daisydiskapp.com

[1] https://duckduckgo.com/?q=sunburst+graph&t=osx&iax=1&ia=imag...


You should be able to display an existing DU dump; think xdu or xdiskusage.

That automatically buys you features like one FS, yes or no counting hard links, soft links, all sorts of exclusion nuances...

Your neat feature is a display; don't hobble it by strapping it to a slapdash scanner.


A non-treemap ncurses alternative is http://dev.yorhel.nl/ncdu/scr


Would be nice if it had a refresh timer or keypress - having to ctrl-c out and back again when you've removed some content is a bit faffy. Other than that, it's pretty useful.


watch ?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: