
In case you are shell-literate, you should use the built-in mtree(8) command to scan a listing and evaluate its contents with the outcomes of one other scan. That is the software Apple makes use of to confirm the integrity of macOS installations.
For instance, to scan your own home folder:
mtree -X exclude -k hyperlink -cn -p ~ > spec
Right here, exclude
is the title of (or path to) a file with a listing of information to be excluded from the scan, and spec
is the output file.
Then, to check the outcomes of that scan with the present state of the folder:
mtree -X exclude -k hyperlink -p ~ < spec
The adjustments can be printed to the usual output. If you wish to pursue this concept additional, see the person web page for mtree.