inotifywait
当我排除打开时,有人可以解释为什么仍然报告打开的文件吗?
mkdir /tmp/a
inotifywait --exclude acess,attrib,close_write,close_nowrite,close,open,moved_to,moved_from,move,delete,delete_self,unmount -r -m /tmp/a/
touch /tmp/a/test
/tmp/a/ OPEN test
/tmp/a/ CLOSE_NOWRITE,CLOSE test
我感兴趣的是是否制作了新文件或修改了当前文件。
我使用 CentOS 7,如果这有什么改变的话。