opensnoop Command Examples

Track file opens on your system. More information: https://keith.github.io/xcode-man-pages/opensnoop.1m.html.

sudo opensnoop

sudo opensnoop -n "{{process_name}}"

sudo opensnoop -p {{PID}}

sudo opensnoop -f {{path/to/file}}