tldr/pages/osx/opensnoop.md

20 lines
360 B
Markdown
Raw Normal View History

2017-10-27 07:03:43 +03:00
# opensnoop
> Tool that tracks file opens on your system.
- Print all file opens as they occur:
`sudo opensnoop`
- Track all file opens by a process by name:
`sudo opensnoop -n {{process_name}}`
- Track all file opens by a process by PID:
`sudo opensnoop -p {{PID}}`
- Track which processes open a specified file:
`sudo opensnoop -f {{path/to/file}}`