mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
442 B
Plaintext
18 lines
442 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# diff3
|
|
|
|
> Compare three files line by line.
|
|
> More information: <https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-diff3>.
|
|
|
|
- Compare files:
|
|
|
|
`diff3 {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}`
|
|
|
|
- Show all changes, outlining conflicts:
|
|
|
|
`diff3 {{[-A|--show-all]}} {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}`
|