如何监控Linux系统关键目录文件的变化?

目录监控 linux
摘要由CSDN通过智能技术生成

前几天在考虑如何监控Linux系统关键目录文件的变化?

为啥?被黑客给入侵了,咋办?如果能把关键目录监控起来,是个不错的想法。

如果跟rsync结合起来,还可以实现目录的备份。比如我们修改了系统配置,或者上传了文件,就可以自动备份到备机上-----------是个很好的应用。

上网搜了一下,发现有个工具叫inotify-------找找他的源代码。

inotify介绍:inotify-tools is a C library and a set of command-line programs for Linux providing a simple interface to inotify. These programs can be used to monitor and act upon filesystem events. A more detailed description of the programs is further down the page. The programs are written in C and have no dependencies other than a Linux kernel supporting inotify.


源代码下载地址 : https://github.com/rvoicilas/inotify-tools/releases

##下载源代码,编译ÿ

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值