opensnoop tracks file opens. As a process issues a file open, details such as UID, PID and pathname are printed out.