← All commands

diff

Compare files with automatic colour

Files

Usage reference

Try an example

diff before.txt after.txt

Expands To

diff --color=auto

Usage

diff <file-a> <file-b>
Dependencies
diff with --color=auto support

Examples

  • diff before.txt after.txt