Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


inotify

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
inotify [2014/12/08 09:23] – created admininotify [2014/12/08 09:24] – [inotify - notice inode changes] admin
Line 4: Line 4:
   * Install inotify:<code>yum install inotify-tools</code>   * Install inotify:<code>yum install inotify-tools</code>
   * Watch a directory recursive:<code>inotifywatch -r /opt/bacula/</code>   * Watch a directory recursive:<code>inotifywatch -r /opt/bacula/</code>
-  * Run your program and after that ctr-c inotifywatch. +  * Run your program and after that ctr-c inotifywatch:<code># inotifywatch -r /opt/bacula/ 
-  +Establishing watches..
 +Finished establishing watches, now collecting statistics. 
 +^Ctotal  access  modify  close_write  close_nowrite  open  create  delete  filename 
 +19                            5              7                 /opt/bacula/lib/ 
 +17                            0              2                 /opt/bacula/working/ 
 +9      4                        2              3                 /opt/bacula/sbin/ 
 +9      3                        3              3                 /opt/bacula/etc/ 
 +6      2                        2              2                 /opt/bacula/scripts/ 
 +3      0                        0              1                 /opt/bacula/log/</code>
  
inotify.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1