Linux: Monitor File Access, etc.

Linux: Monitor File Access, etc.

Just my notes, I’ll play with these tools some more.

lsof

list open files”: report a list of open files and processes that own them.

strace

Monitor system calls used by a program and the system calls it receives.

inotify / inotify-tools

Extends filesystems to notice changes to the filesystem, and report those changes.
This shows all accesses to files/folders, recursively from users home:
inotifywait -r -m $HOME
But it does not give information about the accessing process, or am I mistaken?
If so, it’s not what I need at them moment …

Notes:
Weird, man-page for inotify is present, but the command is unknown. Something about being in the kernel since release 2.6.13.
But there are inotify-tools.

Reading material on inotify and inotify-tools:
Monitor file system activity with inotify

Credit:
Some of the text-snippets were merely copied from Wikipedia articles.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: