在Debian中,基于inotify机制的实用工具主要是inotify-tools,它包含以下两个核心命令行工具:
inotifywait -m -e modify --format '%w%f %e' .
inotifywatch -r -t 10 -e create,modify /path/to/dir
安装:通过包管理器直接安装: sudo apt install inotify-tools。
sudo apt install inotify-tools