LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: 有点麻烦

没有文件比较程序吗?

[复制链接]
 楼主| 发表于 2007-6-21 04:38:31 | 显示全部楼层
Post by scutan
哦。我以前做的是采用diff这个命令,它也可以比较二进制文件,以及两个目录下面的所有文件。把同名但不同的列出来,把一个有而另一个没有的文件名也列出来。
不过你的方法也很不错。
还是diff能解决问题。rsync不考虑内容。

谢谢了!
回复 支持 反对

使用道具 举报

发表于 2007-6-22 15:51:45 | 显示全部楼层
tripwire.
Tripwire就是解决这一问题的经典工具,它是目前最为著名的unix下文件系统完整性检查的软件工具,这一软件采用的技术核心就是对每个要监控的文件产生一个数字签名,保留下来。当文件现在的数字签名与保留的数字签名不一致时,那么现在这个文件必定被改动过了。具体到监控项目,在Tripwire的配置文件中有如下相应说明:
  access permissions and file mode settings, including effective execution settings inode number in the file system

  number of links
  user ID of the owner
  group ID of the group of users to which access may be granted
  size of the item
  date and time the item was last accessed, the last modification made to the item, and the creation date and time associated with the items inode
  由上,我们可以看到Tripwire对文件的管理面是很宽的。
回复 支持 反对

使用道具 举报

发表于 2007-6-22 15:52:46 | 显示全部楼层
tripwire. [quote]Tripwire就是解决这一问题的经典工具,它是目前最为著名的unix下文件系统完整性检查的软件工具,这一软件采用的技术核心就是对每个要监控的文件产生一个数字签名,保留下来。当文件现在的数字签名与保留的数字签名不一致时,那么现在这个文件必定被改动过了。具体到监控项目,在Tripwire的配置文件中有如下相应说明:
  access permissions and file mode settings, including effective execution settings inode number in the file system

  number of links
  user ID of the owner
  group ID of the group of users to which access may be granted
  size of the item
  date and time the item was last accessed, the last modification made to the item, and the creation date and time associated with the items inode
  由上,我们可以看到Tripwire对文件的管理面是很宽的。
[quote]
回复 支持 反对

使用道具 举报

发表于 2007-6-22 15:53:11 | 显示全部楼层
tripwire. [quote]Tripwire就是解决这一问题的经典工具,它是目前最为著名的unix下文件系统完整性检查的软件工具,这一软件采用的技术核心就是对每个要监控的文件产生一个数字签名,保留下来。当文件现在的数字签名与保留的数字签名不一致时,那么现在这个文件必定被改动过了。具体到监控项目,在Tripwire的配置文件中有如下相应说明:
  access permissions and file mode settings, including effective execution settings inode number in the file system

  number of links
  user ID of the owner
  group ID of the group of users to which access may be granted
  size of the item
  date and time the item was last accessed, the last modification made to the item, and the creation date and time associated with the items inode
  由上,我们可以看到Tripwire对文件的管理面是很宽的。
[quote]
回复 支持 反对

使用道具 举报

发表于 2007-6-22 15:54:19 | 显示全部楼层
天啊, 怎么一下出来这么多. 版主来把他们删了吧.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-25 23:06:21 | 显示全部楼层
谢谢jackycxh!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表