SYNOPSYS

NCDU is a lightweight ncurses based disk usage analyser with a nice cache capability.

PROCEDURE

If not already done, enable and start cron’s service (cronie,fcron,dcron …)

1
2
sudo systemctl enable cronie.service
sude systemctl start cronie.service
set the above in cron for a weekly usage computation, crontab -e
1
0 22 * * 1  ncdu -0xo- $HOME | gzip > $HOME/.cache/ncdu-data.gz
then use the cache file like this
1
zcat ~/.cache/ncdu-data.gz | ncdu -f-