Shell

diff

$ diff foo.txt bar.txt

vimdiff

$ vimdiff foo.txt bar.txt
$ vimdiff foo/*

IDE

For a richer UI comparisons.

VS Code

  1. Select two files
  2. Right-click
  3. Click “Compared selected”

Online

Don’t put any private or sensitive data here.