tldr/pages/linux/diff3.md

293 B

diff3

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

  • Compare files:

diff3 {{file1}} {{file2}} {{file3}}

  • Show all changes, outlining conflicts:

diff3 --show-all {{file1}} {{file2}} {{file3}}