lilydjwg / ncdu-diff

ncdu fork that can compare and diff results
MIT License
27 stars 4 forks source link
cleanup comparison diff disk-usage filesize ncdu

ncdu fork that can compare and diff results

NOTICE

Please use gdu (which doesn't need to be patched) and gdu-diff to accomplish the same tasks.

Compile and Install

autoreconf -i
./configure
make
make install

Copy ncdu-diff and ncdu-diffdir somewhere (e.g. in your $PATH). You'll need Python to run them.

Usage

Run:

ncdu-diffdir /directory/a /directory/b

Or you can do steps manually (and optionally save intermediate results.

Export two scan results:

ncdu -o old.ncdu /some/directory
ncdu -o new.ncdu /some/directory

Generate diff:

ncdu-diff old.ncdu new.ncdu > diff.ncdu

Load and view the diff:

ncdu -f diff.ncdu