1. 23
  1. 17

    Can we please not start posting random wikipedia articles on lobste.rs? It’s extremely low effort..

    1. 6

      Voting is supposed to take care of uninteresting/low-effort posts. Seems like people like this post anyways. I love ncdu! Cuts through disk cruft like a laser-sword.

      1. 3

        As an aside, this Wikipedia article definitely doesn’t meet their notability guidelines as written. Not criticizing the tool itself, but the article has 0 secondary sources

          1. 1

            Was the screenshots link on the tool’s homepage not working? That includes many screenshots including a better version of the one attached to the wikipedia article.

            1. 1

              Ah, I was only looking at the homepage and missed that page. Those are great. Thanks

        1. 5

          The home page is https://dev.yorhel.nl/ncdu it seems but that page didn’t include a screenshot which helps illustrate how much more useful this is than just running df -h or du on your own.

          1. 2
            1. 1

              Missed that page. Thanks!

          2. 4

            I’ve been using it for years, but apparently stuff like gdu is faster for SSDs now.

            1. 3

              I use this, it’s very effective!

              I wrote my own graphical scripts at some point with a treemap, and then tried this and realized it’s good enough in practice :) It’s fast.

              1. 2

                I have used this for many years and it is one of my favourite pieces of software. So usefull. Removing the clutter in a filesystem becomes a breeze.

                From ncdu’s website:

                Project status: Maintenance mode: I consider ncdu to be mostly complete. I’m still here to keep it alive and to fix issues as they come along, but I don’t actively work on adding new features.

                This is how it’s done. We need more such pragmatism. Write software which a well defined scope and purpose, implement it cleanly and well, and use it.

                1. 2

                  It respects .gitignore/.dockerignore so it was a great tool to use when diagnosing weird large docker images

                  1. 1

                    I use the similar duc, originally for the pie charts, but I haven’t used those in years.

                    1. 1

                      Somebody on reddit recently made me aware of gdu, which is just ncdu but faster.

                      1. 1

                        It is indeed a great tool to have in your toolbox. I use it often when diagnosing disk space issues.

                        1. 1

                          I would do naughty things for a tool that can also show the age of dirs/files in addition to just the size. Say I find a database dump taking up 32 GB of disk on a shared server. If it’s 5 days old, I’d probably leave it alone. If it’s 5 years old, 99% chance I can delete it without hesitation. But I currently have to jump to another terminal window just to find that out. It would make my day-to-day job a ton easier if I could just d it right then and there.

                          1. 3

                            version 2.16 has the -e flag to have it read mtimes during scanning - you have to press ‘m’ once it loads to actually display / sort by them.