Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cybermook

macrumors newbie
Original poster
Jun 24, 2023
18
10
I remember as far back as DOS that there was a simple command line to compare files for any differences. Does anyone know of a utility that would easily enable comparing files for possible differences? It is a function some programs perform within, i.e. Cloner, but I mean one where you can pick two files, run a comparison that will also highlight the differences, if any.
 

Geoff777

macrumors regular
Jun 17, 2020
202
120
There are quite a few in the App Store and search for "file compare"
 

Slartibart

macrumors 68030
Aug 19, 2020
2,892
2,596
open a terminal, then use:

diff (file input 1) (file input 2)

to compare 2 files. Or:

diff -rq folder1 folder2

The q switch sets diff in brief mode. If not set to brief mode, diff would not only tell you which files are different between the two folders, but also show the actual line-by-line differences for any text files that exist in both locations but are not identical (as it does for the first command sequence). r tells diff to look at each directory recursively, including subdirectories.
 

MilaM

macrumors 6502a
Nov 7, 2017
706
1,499
I usually use the command-line to diff files or directories. But it's not very intuitive to use it.

The most polished app for Mac is Kaleidoscope as far as I know. It's expensive though and probably not worth it if you don't use it professionally. There is also the open source Meld, but the macOS builds are not well supported.
 

DuskHorizon

macrumors newbie
Feb 16, 2024
10
9
There was kdiff3 0.9.98 in the good old days, free and open source, and worked fine on Mac, but it uses Qt 4 and have problems with modern Macs. There’re new versions of kdiff3 on Homebrew – https://formulae.brew.sh/cask/kdiff3 – but it lacks Apple Silicon version and there were some UI bugs in the past. But you could try it anyway, maybe you’d like it.
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
5,778
4,372
Along with diff, cmp. Less options than diff but does get the job done.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.