[CentOS] Comparing directories recursively

Frank Cox theatre at sasktel.net
Fri Oct 27 22:23:45 UTC 2017


On Fri, 27 Oct 2017 17:51:46 -0400
H wrote:

> But is diff not best suited for text files?

The standard unix diff will show if the files are the same or not:

$diff 1.bin 2.bin
Binary files 1.bin and 2.bin differ

If there is no output from the command, it means that the files have no differences.

Since you don't need to know exactly how the files are different (the mere fact that they are different is what you do want to know), that should do it.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com



More information about the CentOS mailing list