A short list with categories of my smol terminal focused tools, scripts and functions I have created over the years. There are some general purpose and very specific ones. This list was needed, because in Github it was a bit cluttered. Maybe, just maybe, you find something useful or inspiring in there.
Simce you have Biggest, also try PDU https://github.com/KSXGitHub/parallel-disk-usage
Gives you a cli graph of what folders files are taking up largest percent of space. It runs parallel processes to get the info, so it reports it super fast.
I’ve seen this before. It’s a nice visualization. As for the “biggest” script, its not as slow as you think. It’s a single
du
call (alongside cheap sort, head and tac) and therefore quite fast. In example in my ~/Documents directory is almost 1 TB big and runningtime biggest Documents
executes it in almost 2 seconds (for the first time after a reboot). Subsequent calls are quicker, 0.6s and then 0.07s. Edit: And BTW, it’s a mechanical HDD, not SSD too.Also I like the output of the files or folders and I can even use commandline arguments like
biggest Documents/*.txt
in example. So for me this is enough and exactly what I need.