System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

opensnoop

Tool that tracks file opens on your system. More information: https://ss64.com/osx/opensnoop.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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.