Install fam by entering the following commands in the terminal:
sudo apt update sudo apt install fam
Description:
File Alteration Monitor
FAM monitors files and directories, notifying interested applications of changes. . This package provides a server that can monitor a given list of files and notify applications through a socket. If the kernel supports dnotify (kernels >= 2.4.x) FAM is notified directly by the kernel. Otherwise it has to poll the files' status. FAM can also provide an RPC service for monitoring remote files (such as on a mounted NFS filesystem).
Homepage: http://oss.sgi.com/projects/fam/
Version: 2.7.0-17.2
Section: universe/admin