本文将简要介绍inotify,告诉我们如何监控文件夹,如何一有变化就报告相关消息事件,并介绍了一些相关工具,我们可以把它们添加到自己的工具箱中。
In this article we will walk through how to use Inotify to monitor directories and trigger alerts on changes and present tools you might want to add to your personal toolbox.
实际使用时,如果并不想监控某个大文件夹,那么就可以使用inotifywait的exclude选项。
inotifywait provides an option to exclude directories from processing events. Assuming we want to ignore the directories /srv/test/large and /srv/test/ignore we can execute
应用推荐