News for hackers. Stuff that matters.
Re:Ncdu 2: Less hungry and more Ziggy by gmfawcett on Sunday July 25, 2021 @11:28AM (#27949848)
One thing I really appreciate about ncdu, that seems to be missing from its work-alikes (gdu, pdu,etc.), is the option to export scan results to disk & import them later. Not a feature that helps every day, but extremely handy sometimes.
Re:Ncdu 2: Less hungry and more Ziggy by saagarjha on Sunday July 25, 2021 @03:06PM (#27951948)
Seems like a known limitation that may be addressed at some point:

> Exporting an in-memory tree to a file. Ncdu already has export/import options, but exporting requires a separate command invocation - it's not currently possible to write an export while you're in the directory browser. The new data model could support this feature, but I'm still unsure how to make it available in the UI.

Re:Ncdu 2: Less hungry and more Ziggy by handyman5 on Tuesday July 27, 2021 @01:28AM (#27968958)
Note that you can import _any_ data that's structured like a nested orderable hierarchy, it doesn't have to be a file that `ncdu` itself created. I've used this functionality to scan and then navigate S3 buckets, Artifactory repositories, and even git branches (where the "size" is the number of commits).
Re:Ncdu 2: Less hungry and more Ziggy by rashil2000 on Sunday July 25, 2021 @12:45PM (#27950631)
gdu added that feature just a couple of releases ago.
Re:Ncdu 2: Less hungry and more Ziggy by gmfawcett on Sunday July 25, 2021 @05:41PM (#27953164)
Wow! you weren't kidding, the feature appears in release 5.3.0 (5 days ago!).