Compare two files in patch-friendly format.

Section: Compare and Combine

Show unified diff

bash
bash
diff -u old.conf new.conf

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Compare and Combine
Compare files byte-by-byte
Find first differing byte.
OpenIn sheetbashsame section
Compare sorted line sets
Show common and unique lines between two sorted files.
OpenIn sheetbashsame section
Concatenate multiple files
Combine files into one output file.
OpenIn sheetbashsame section
Print file content
Output a file to standard output.
Split file into chunks
Split a large file into 100 MB parts.