command line – Can I use an APFS snapshot to generate a list of all files changed since an earlier point?

Spread the love

I just clean installed macOS on a new VM and now need to set it up with various preferences and stuff to customize it. What I am curious about is where all those customizations actually get stored.

I think most are probably in Preferences plists but others might be in other system databases or third party app configuration files. Regardless, really I’m just wanting to see a list of files changed between “Point A” and some later “Point B” and this is probably interesting in a lot of other cases too.

Is there a way I can use the command line to:

  1. Trigger an APFS snapshot of my “Macintosh HD” boot disk — starting point “A”
  2. …then do whatever using the computer…
  3. Then trigger a new snapshot and/or at least compare now at time “B” what files have been modified since the snapshot at “A”?

Don’t need a GUI or anything, just commands that would mark the snapshot and echo out a list of files that changed later. And I don’t really need any sort of diff showing the changes within each files, just the overall paths/names of ones that did.

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *