diff3

Compare three files line by line. More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff3.html>.

Install

All systems
curl cmd.cat/diff3.sh
Debian Debian
apt-get install diffutils
Ubuntu
apt-get install diffutils
Alpine
apk add diffutils
Arch Arch Linux
pacman -S diffutils
image/svg+xml Kali Linux
apt-get install diffutils
CentOS
yum install diffutils
Fedora
dnf install diffutils
Windows (WSL2)
sudo apt-get update sudo apt-get install diffutils
OS X
brew install diffutils
Raspbian
apt-get install diffutils
Docker
docker run cmd.cat/diff3 diff3 powered by Commando

Compare three files line by line. More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff3.html>.

  • Compare files:
    diff3 path/to/file1 path/to/file2 path/to/file3
  • Show all changes, outlining conflicts:
    diff3 --show-all path/to/file1 path/to/file2 path/to/file3

© tl;dr; authors and contributors