1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/opensnoop.md

21 lines
432 B
Markdown
Raw Normal View History

2017-10-27 06:03:43 +02:00
# opensnoop
> Track file opens on your system.
> More information: <https://keith.github.io/xcode-man-pages/opensnoop.1m.html>.
2017-10-27 06:03:43 +02:00
- Print all file opens as they occur:
`sudo opensnoop`
- Track all file opens by a process by name:
2022-02-14 03:21:43 -08:00
`sudo opensnoop -n "{{process_name}}"`
2017-10-27 06:03:43 +02:00
- 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}}`