diff -u file1.txt file2.txt

Category: File Operations

diff -u file1.txt file2.txt

Show unified diff format (used in patches)

Shows file differences in 'unified' format — a standard format used in patches and code reviews, showing a few lines of context around each change.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.