≡ Menu

HowTo: Use diff / colordiff Command In Linux

Fig.01: colordiff in action

Use colordiff wherever you would normally use diff, or pipe output to colordiff. For example:

colordiff file1 file2
diff -u file1 file2 | colordiff

If you have wdiff installed, colordiff will correctly colourise the added and removed text, provided that the -n option is given to wdiff:

wdiff -n file1 file2 | colordiff

Sysadmin because even developers need heroes!!!

Share this on:

Examples and usage: diff Command: Colorize Output On The Unix / Linux Command Line

{ 0 comments… add one }
Security: Are you a robot or human?