I would like to be able to track a file and see which process is touching that file. Is that possible? I know that I can see the list of open processes in activity monitor
That's simple: sudo fs_usage | grep [path_to_file]
sudo fs_usage | grep [path_to_file]