mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
20 lines
432 B
Markdown
20 lines
432 B
Markdown
# opensnoop
|
|
|
|
> Track file opens on your system.
|
|
> More information: <https://keith.github.io/xcode-man-pages/opensnoop.1m.html>.
|
|
|
|
- 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}}`
|