How to see what changed between two copies of a folder

To see what changed between two copies of a folder, start with diff -rq -x .DS_Store CopyA CopyB in Terminal for the files that were added, removed or edited. rsync -ain --delete CopyA/ CopyB/ adds sizes and direction without changing anything, shasum -a 256 confirms whether two files really differ, and find -newer lists recent changes. FolderTwin puts all of it in one list: only left, only right, newer left, newer right, conflict.

Updated · commands run on macOS 27.2

  1. Run diff -rq -x .DS_Store Photos Backup to see files only in one copy and files that differ.
  2. Run rsync -ain --delete Photos/ Backup/. It changes nothing (-n) and marks each file as new, different in size or date, or missing from Photos.
  3. Run shasum -a 256 on both copies of a file. Different checksums mean different contents.
  4. Run find Photos -type f -newer Backup/notes.txt to list files in Photos changed after that file.

Added, removed or edited: diff

diff -rq -x .DS_Store Photos Backup
Only in Photos/2026-03: IMG_0302.HEIC
Files Photos/notes.txt and Backup/notes.txt differ
Only in Backup: old

“Only in” means the file or folder exists in one copy. “Files … differ” means both copies have it but the contents aren’t the same. diff doesn’t say which one is newer.

Sizes and direction: rsync dry run

A dry run of rsync lists what it would do to make the second copy match the first, without doing it:

rsync -ain --delete Photos/ Backup/
*deleting old/export.jpg
*deleting old/
>f+++++++ .DS_Store
>f.s..... notes.txt
>f+++++++ 2026-03/IMG_0302.HEIC

>f+++++++ is a file only in Photos, >f.s..... a file whose size differs, and *deleting something only in Backup. The -n is what keeps this safe: without it, --delete really deletes.

Really different? Checksums

Size and date are a quick test. A checksum reads the whole file:

shasum -a 256 Photos/notes.txt Backup/notes.txt
68f01b289aedcf28e96fce1f9444365e83b9bfc7e1bf32df20f1f15966835316  Photos/notes.txt
dd0aec17a1d2d8ad52db01924d64a79379d73aefe386d41f8e785d073b827649  Backup/notes.txt

Different checksums, different contents. The same checksum means the files are identical.

Changed recently: find -newer

find lists files modified after a reference file, for example the last file you know was backed up:

find Photos -type f -newer Backup/notes.txt
Photos/.DS_Store

In this test only Finder’s .DS_Store was newer. On a real folder this is a quick way to see what you worked on since a given day.

All of it in one list

FolderTwin compares the two copies and shows every file with its status (same, only left, only right, newer left, newer right, conflict), its size and date on both sides, and a filter for each status. Compare by size and date, with 2 seconds of slack for FAT and exFAT drives, or by contents with SHA-256 when you need to be sure. In Two-way mode it also remembers the last sync, so it can tell which side changed and when both did.

Comparing never changes a file. When you want the copies to match, the preview shows each step first, and whatever is removed or replaced goes to the Trash.

Questions

Two files have the same size and date. Are they identical?

Almost always, but not guaranteed. A program can change a file and keep its date. To be sure, compare checksums (shasum -a 256) or compare by contents.

Why does a file on my exFAT drive look one second older?

FAT and exFAT store modification times in 2-second steps, so a copy can show a slightly different time. Compare with some slack: FolderTwin treats dates within 2 seconds as equal.

Which copy is newer?

Compare the modification dates: stat -f "%Sm %N" followed by both paths prints each file’s date and name. In FolderTwin the status says it directly: newer left or newer right.

Can I see what changed inside a text file?

Yes: diff Photos/notes.txt Backup/notes.txt (without -q) prints the changed lines. For photos and videos, a byte-level difference isn’t useful; the checksum tells you whether they differ.

Sources

  • diff(1) manual page — man diff in Terminal
  • rsync(1) manual page (openrsync) — man rsync in Terminal
  • shasum(1) manual page — man shasum in Terminal
  • find(1) manual page — man find in Terminal

More guides

FolderTwin for Mac

Compare two folders, see every difference, and sync only what you approve. Removed files go to the Trash.

Coming soon to the Mac App Store

macOS 14 Sonoma or later · Apple silicon and Intel