1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/osx/opensnoop.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

432 B

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}}