Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


inotify

This is an old revision of the document!


~~TOC~~

inotify - notice inode changes

  • Install inotify:
    yum install inotify-tools
  • Watch a directory recursive:
    inotifywatch -r /opt/bacula/
  • Run your program and after that ctr-c inotifywatch:
    # inotifywatch -r /opt/bacula/
    Establishing watches...
    Finished establishing watches, now collecting statistics.
    ^Ctotal  access  modify  close_write  close_nowrite  open  create  delete  filename
    19     7       0       0            5              7     0       0       /opt/bacula/lib/
    17     2       7       2            0              2     2       2       /opt/bacula/working/
    9      4       0       0            2              3     0       0       /opt/bacula/sbin/
    9      3       0       0            3              3     0       0       /opt/bacula/etc/
    6      2       0       0            2              2     0       0       /opt/bacula/scripts/
    3      0       1       1            0              1     0       0       /opt/bacula/log/
inotify.1418030642.txt.gz · Last modified: 2014/12/08 09:24 by admin