On 10/27/2017 05:35 PM, Frank Cox wrote:> On Fri, 27 Oct 2017 17:27:22 -0400 > H wrote: > >> What is the best tool to compare file hashes in two different >> drives/directories such as after copying a large number of files from one >> drive to another? I used cp -au to copy directories, not rsync, since it is >> between local disks. > diff --brief -r dir1/ dir2/ > > might do what you need. > > If you also want to see differences for files that may not exist in either directory: > > diff --brief -Nr dir1/ dir2/ >But is diff not best suited for text files?
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
On October 27, 2017 6:23:45 PM EDT, Frank Cox <theatre at sasktel.net> wrote:>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 >_______________________________________________ >CentOS mailing list >CentOS at centos.org >https://lists.centos.org/mailman/listinfo/centosOk!