[CentOS] Comparing directories recursively

Fri Oct 27 21:35:59 UTC 2017
Frank Cox <theatre at sasktel.net>

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/

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