83.inotifywait基本使用

发表于 linux 分类,标签:
https://blog.csdn.net/qq_37788558/article/details/104985262开始之前需要检测系统内核是否支持inotify方式一:使用uname-r命令检查Linux内核,如果低于2.6.13,就需要重新编译内核加入inotify的支持。方式二:使用ll/proc/sys/fs/inotify命令,是否有以下三条信息输出,如果没有表示不支持。-rw-r--r--1rootroot0Mar1615:43max_queued_events-rw-r--r--1rootroot0Mar1615:43max_user_instances-rw-r--r--1rootroot0Mar1615:43max_user_watchesyum安装$yumsearchinotify-tools$yumi...