How to compare two folders on a Mac

Updated 11 November 2026

The usual reason to compare two folders is a backup you are not sure about: a project folder on your Mac and its copy on a NAS or external drive, and the question "what is missing from the backup?". Finder has no command for this. macOS has two Terminal tools that do it well, and they are free.

Before you start: drag the folders into Terminal

Open Terminal (Applications > Utilities). In each command below, type the command, then drag the first folder from Finder into the Terminal window and the second after it; Terminal fills in the full paths, spaces and all. A NAS share needs to be mounted in Finder first, so it appears under /Volumes.

1. List what differs with diff

diff -rq ~/Projects/Show-2026 /Volumes/Backup/Show-2026

-r goes into subfolders and -q prints one line per difference instead of the contents. You get two kinds of line:

No output means the folders match. diff reads every byte on both sides, which is the most thorough check but slow for a large folder on a NAS, because the whole backup comes back over the network.

2. Ask rsync what it would copy, without copying

A dry run of rsync is faster on big folders, because by default it compares each file's size and modified date instead of reading the contents.

rsync -rvn --delete ~/Projects/Show-2026/ /Volumes/Backup/Show-2026/

Add -c to compare full checksums instead of size and date: as slow as diff, but certain. If every file shows as different on a NAS, the share is probably storing modified times less precisely than your Mac does; --modify-window=2 treats dates within two seconds as equal. Since macOS 15 the built-in rsync is Apple's openrsync, which supports all of these options.

3. A quick look in Finder

For a small folder, open both in Finder in list view, sort each by name and turn on the Size column, or press ⌘J and select Calculate all sizes. Matching file counts and totals are a reasonable sign, not proof: a missing file and an extra file cancel out, and it tells you nothing about the contents.

Doing it in Harbour

Harbour has this built in. Open the two folders in its two panes and choose Go > Compare with Other Pane. It works on any two folders, on the same drive or not, including a Mac folder against its NAS backup.

For checking a copy you have already made, see how to check a copy matches the original. Harbour compares and copies; it does not keep two folders in sync on its own. If you need two-way sync or remote servers, ForkLift and Path Finder do that.

Sources

Checked 11 November 2026.