Track disk usage over time on Mac.
disk-usage-depth-05.sh
usesdu
command to get the disk usage statistics, and then write these statistics to a file with a name like "2017-02-21-disk-usage.tsv".- Then
compare-changes.py
takes the two most recent.tsv
files and compares which direcories have changed their sizes over time.
- Open your Terminal.
- Run
chmod u+x disk-usage-depth-05.sh
- Run
sudo ./disk-usage-depth-05.sh
- Run
python compare-changes.py
.
Only tested with OS version 10.10.5, 11.4 (M1 chip) and Python 2.7.13.
Please feel free to copy and modify the code.