Skip to content

Instantly share code, notes, and snippets.

@vremy
Created May 4, 2016 14:45
Show Gist options
  • Save vremy/9955fb9eb6b69ad17ad371ddf4a4cd28 to your computer and use it in GitHub Desktop.
Save vremy/9955fb9eb6b69ad17ad371ddf4a4cd28 to your computer and use it in GitHub Desktop.
Show filedescriptors opened by the given process
dtrace -p PROCESS_ID -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment