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

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.

  • Utilities
  • Mac
  • Computers
  • Linux
  • MacOS