在Debian上安装inotify通常指安装inotify-tools工具包,步骤如下:
sudo apt update
sudo apt install inotify-tools
安装完成后,可使用inotifywait和inotifywatch命令来监控文件系统事件。若需在程序中使用inotify,可安装libinotify-dev库。
inotifywait
inotifywatch
libinotify-dev