我有一个AWS EC2实例,想要安装inotify-tools。我执行了以下命令添加了软件源:rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm,然后执行yum insta...
要在Linux上监控一个文件,可以使用inotify-tools,如下所示: #!/bin/bash # with inotify-tools installed, watch for modification of file passed as first param while ino...