[CentOS] Compare directories and files including files content from both node1 and node2

Thu Feb 9 16:37:22 UTC 2023
Kaushal Shriyan <kaushalshriyan at gmail.com>

Hi,

I am running CentOS Linux release 7.9.2009 (Core) on node1 and node2. Is
there a way to compare both files and directories in web server
document root -> /var/www/html/webservices residing on both node1 and node2
including the files content.

It is to make sure that both nodes are having the same file contents,number
of files,subdirectories and directories.

Please guide me. Thanks in advance.

Best Regards,

Kaushal