{"by":"patonw","descendants":31,"id":48936389,"kids":[48939416,48942287,48939004,48938009,48941068,48978724,48937072,48937412,48938098,48938568,48954816,48943074,48954317,48938165,48938277,48954273,48940288,48939943,48940954,48939499,48941580,48939918,48938188,48943286],"score":93,"text":"GUI disk analyzers are great for figuring out what&#x27;s filling up your laptop&#x2F;desktop drive.<p>On containers or remote servers, the options are limited to purely text based\nutilities (e.g. du) or list-centric TUIs (e.g. ncdu) which are usually limited\nto viewing one directory at a time.<p>I created <i>leaves</i> to fill that gap.<p>Inspired by classic utilities like WinDirStat and KDirStat, it uses a\n2-dimensional treemap^1 visualization to show the entire directory hierarchy\nwith proportionally sized rectangles.<p>It&#x27;s performant enough to handle millions of files, thanks to Rust and\nmulti-threading. However, block characters aren&#x27;t as suited as pixels for\nresolving a large number of items. Leaves can show file-type summaries per\ndirectory or partition the top-level directories by extension, allowing you to\nsee not only where space is being used, but also how.<p>For instance, I can see the largest chunk of my home directory is taken up by\nuv caches for python and old Linux ISOs that I could easily re-download if\nneeded. Or in a particular container, +600MB is used by standard Rust\ndocumentation and tutorials, and that it is the only location with HTML&#x2F;JS files,\nwhen only the libraries and build tools are needed (note to self: remember to\nuse the <i>minimal</i> profile next time).<p>^1: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;shundhammer&#x2F;qdirstat&#x2F;blob&#x2F;master&#x2F;doc&#x2F;Treemap.md\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;shundhammer&#x2F;qdirstat&#x2F;blob&#x2F;master&#x2F;doc&#x2F;Tree...</a>","time":1784217823,"title":"Show HN: Leaves – A text-UI disk usage treemap visualizer","type":"story","url":"https://github.com/patonw/leaves"}