One - One Code All

Blog Content

linux用md5sum查看文件md5值,diff查看文件区别

Linux-Mac   2012-11-12 20:52:31

linux下查看文件md5值的命令为:

md5sum fileName

linux 系统比对两个文件内容是否完全相同(如果文件内容完全相同,即使文件名不同,其md5值也是相同的。可用于扫黄检测)。


如果两个文件内容不同,怎么显示细节,是哪些地方不同。用:

diff  file1  file2



上一篇:git删除文件时出现:please enter the commit message for your changes
下一篇:centos服务器输出日期时间格式

The minute you think of giving up, think of the reason why you held on so long.