inotify-tools命令的使用

Debian9下安装inotify-tools

apt-get install inotify-tools -y

inotify-tool提供了两个应用程序,分别为inotifywait与inotifywatch。其中,inotifywait命令的描述和用法如下。

inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format '%T %w%f %e' /home

inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format '%T %w%f %e' -e close_write,modify,delete,create,move,attrib /home

 

原文地址:https://www.cnblogs.com/opsprobe/p/13731291.html