HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fatrace — Report file access events. See also: `inotifywait`. More information: <https://manned.org/fatrace>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandreportaccessclifilefatraceeventssee
linux

Problem

How to use the fatrace command: Report file access events. See also: inotifywait. More information: <https://manned.org/fatrace>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/fatrace

Revisions (0)

No revisions yet.