6 ms·
Somewhat related - `duf` is "a better `df` alternative": https://github.com/muesli/duf https://github.com/muesli/duf
by petecooper 3y ago
Somewhat related - `duf` is "a better `df` alternative":
https://github.com/muesli/duf https://github.com/muesli/duf
- ggambetta 3y agoAnd `dust` as a `du` replacement.
- 2bluesc 3y agoAlso `dua`[0] is a great `du` replacement which is must faster on modern NVMe drives. It includes an interactive mode `dua i` which I'd frame as a `ncdu` replacement. [0] https://github.com/Byron/dua-cli https://github.com/Byron/dua-cli
- Given_47 3y agoStarted using dust yesterday and like it so far. Also a big fan of diskus by sharkdp as a blazingly fast du -hs alternative
- gkfasdfasdf 3y agoI also like https://github.com/Byron/dua-cli https://github.com/Byron/dua-cli, does disk usage like du but also has an interactive mode which makes finding and freeing up space a breeze.
- tinco 3y agoEven though it's not supposed to be my day job, I've ran `df |grep -v <super long list` hundreds of times in the past year, yet it never occurred to me that I could try and find a better tool.
- jrm4 3y agoPreach. This happens to me all the time and keeps happening. There's a lot of Unix/Linux stuff that I wish I could UNlearn, I'm aware of other tools but muscle memory keeps me using worse things. (honestly, I also feel this way about vim as well as 'writing in cursive')
- entropie 3y agoI feel you. I still `cat foo | grep bar` instead of `grep foo bar`
- nielsole 3y agoThe reason I stick to `cat foo | grep bar` is that I am never quite sure if `grep bar foo` would be correct instead (it is).
- jrm4 3y agoBut to me -- this is different? I believe "useless use of cat" is FAR MORE useful than what the ultra-nerds say; I could care less about "saving a few characters." The mental model of the pipeline --in one end and out the other -- is entirely too usefully intuitive and way better than some imaginary geek-cred. (I was more thinking about the new rust tools, e.g. rg instead of grep)
- systems_glitch 3y agoPlus sometimes you want to throw something like `pv` in.
- simon04 3y agoPlus the regex is more likely incorrect in the first attempt and needs to be fixed.
- _V_ 3y agoThe former has one big advantage: I can easily change "needle" without having to skip all over the cmdline... Pretty usefull when debugging something interactively.
- t-3 3y agoInstalling a new tool just to exclude certain parts of the list has much more friction involved than just making a shell alias/function/script though. It's also much more portable.
- hackmiester 3y agoIf it's possible to include (rather than exclude), you can: $ df /dev/sda1 /dev/nvme0n1p1 And get only those file systems.
- NikkiA 3y agoAnd more importantly, you can specify fs locations, so `df / /home` for example
- gumby 3y ago`df|grep` might be “the better tool” because the cognitive overhead of knowing an extra program’s interface. You’re just saying “show me the subset of this other list” and you automatically select your go-to solution for that: `|grep` The reason for seeking a better tool is when too much excessive work (== time) is involved, or list generation has side effects. But in this case you don’t have two million mount points, so no need to worry.
- 9659 3y agoreplacement? why not make df better...
- imiric 3y agoAnd miss the chance to rewrite it in Rust or Go? :) Jest aside, it's much easier to write a small tool from scratch, than to contribute to coreutils, where this kind of improvement is likely to be rejected, for various arguably valid reasons. Besides, having alternatives is healthy for the Linux ecosystem, and writing something from scratch is a good learning experience.
- thayne 3y agoMaking a new tool means you can break backwards compatibility. Better is also subjective.
- jplona 3y agoI've always used ncdu for this. It also allows deleting files/directories for when you're trying to figure out how to free up space. https://en.wikipedia.org/wiki/Ncdu https://en.wikipedia.org/wiki/Ncdu
- hnarn 3y agoFor anyone that likes ncdu I would highly recommend gdu. https://github.com/dundee/gdu https://github.com/dundee/gdu