mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 11:45:59 +02:00
opensnoop: add page (#1576)
This commit is contained in:
parent
9a73c2d676
commit
aa405d2f20
1 changed files with 19 additions and 0 deletions
19
pages/osx/opensnoop.md
Normal file
19
pages/osx/opensnoop.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# opensnoop
|
||||||
|
|
||||||
|
> Tool that tracks file opens on your system.
|
||||||
|
|
||||||
|
- 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}}`
|
Loading…
Add table
Reference in a new issue