Reputation: 81
Suppose there is file called compare.txt
on remote host1 and host2.
I want to compare the two files if they are the same or not.
Is there a solution for this?
Upvotes: 1
Views: 2340
Reputation: 68449
Use stat
module with get_checksum
parameter set on (which anyway is a default setting).
Then compare the checksums.
Upvotes: 1