Using inotify to monitor file changes in linux is a useful method. There are many tutorials on how to configure inotify. Issue
Using inotify to monitor file changes in linux is a useful method. There are many tutorials on how to configure inotify.
The problem occurs after you download and compile inotify. when you run the command, an error is returned. libinotifytools. so.0 cannot be found. The result of running the ldd command is as follows:
Ldd/usr/local/bin/inotifywait linux-vdso.so.1 => (0x00007fffe2fff000) libinotifytools. so.0 => not found libc. so.6 =>/lib64/libc. so.6 (0x00007fd66fe52000)/lib64/ld-linux-x86-64.so.2 (0x00007fd6701b0000)
In fact, you only need to run ldconfig again.
Ldd/usr/local/bin/inotifywait linux-vdso.so.1 => (0x00007fff48fb9000) libinotifytools. so.0 =>/usr/local/lib/libinotifytools. so.0 (0x00007fb1a08a1000) libc. so.6 =>/lib64/libc. so.6 (0x00007fb1a0543000)/lib64/ld-linux-x86-64.so.2 (0x00007fb1a0abd000)