How to use the macOS command line to compare two folders’ contents in Terminal

diff -rq folder1 folder2.

This is a pretty simple command, with two command-line switches (-rq). .

The r tells diff to look at each directory recursively, including subdirectories. The q switch sets diff in brief mode.

Read more