Compare files in two visual columns.
Section: diff, cmp, and patch-Oriented Comparison
Show side-by-side diff
bash
bash
sdiff file1.txt file2.txtExplanation
Side-by-side comparison is useful for quick visual inspection.
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 diff, cmp, and patch-Oriented Comparison