mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 04:43:49 +00:00
27 lines
588 B
Plaintext
27 lines
588 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# fatrace
|
|
|
|
> Report file access events.
|
|
> See also: `inotifywait`.
|
|
> More information: <https://manned.org/fatrace>.
|
|
|
|
- Print file access events in all mounted filesystems to `stdout`:
|
|
|
|
`sudo fatrace`
|
|
|
|
- Limit output to a program with a specific name:
|
|
|
|
`sudo fatrace {{[-C|--command]}} {{program_name}}`
|
|
|
|
- Print file access events on the mount of the current directory to `stdout`:
|
|
|
|
`sudo fatrace {{[-c|--current-mount]}}`
|
|
|
|
- Add timestamps to the printout:
|
|
|
|
`sudo fatrace {{[-t|--timestamp]}}`
|