How-To

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

Use a built-in Unix program to quickly compare two folders' contents.

macOS Big Sur Terminal icon
Apple

Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read our affiliate link policy for more details.

Former Macworld Senior Editor Rob Griffiths founded Mac OS X Hints. He's now master of ceremonies at Many Tricks Software.