News for hackers. Stuff that matters.
Re:Show HN: Dut, a fast Linux disk usage calculator by inbetween on Thursday July 11, 2024 @12:27PM (#40938244)
I often want to know who there is a sudden growth disk usage over the last month/week/etc, what suddenly take space. In those cases I find myself wishing that du and friends would cache their last few runs and would offer a diff against them, this easily listing the new disk eating files or directories. Could dut evolve to do something like that?
Re:Show HN: Dut, a fast Linux disk usage calculator by namibj on Thursday July 11, 2024 @02:49PM (#40939447)
btdu extra (or expert?) mode with snapshots kinda does that: you can see what's only in the new version and not in a snapshot; and vice-versa. Also it offers attributing size to folders only for extends that aren't shared with a different folder (snapshots are essentially just special folders), to kinda get a diff between the two (stuff only present in the old snapshot is shown there; stuff only present in the new version is shown there).
Re:Show HN: Dut, a fast Linux disk usage calculator by beepbooptheory on Thursday July 11, 2024 @12:41PM (#40938392)

  du[t] > .disk-usage-"`date +"%d-%m-%Y"`"
And then use diff later?
Re:Show HN: Dut, a fast Linux disk usage calculator by inbetween on Thursday July 11, 2024 @04:16PM (#40940228)
Almost all of them will have some difference. What is needed is to parse the previous state, calculate the difference in size, and show only the "significant" difference.
Re:Show HN: Dut, a fast Linux disk usage calculator by thesh4d0w on Thursday July 11, 2024 @12:45PM (#40938418)
Re:Show HN: Dut, a fast Linux disk usage calculator by inbetween on Thursday July 11, 2024 @04:17PM (#40940240)
That looks perfect, thanks!