How to diff two files side-by-side Commands Add comments Nov 122012 How to diff two files side-by-side Answer: To diff two files side-by-side, you can try the -y argument. # diff -y file1.txt file2.txt Related posts: Compare difference of two files side by side Open two files side by side using vim How to diff two remote files over ssh? How to ignore blank lines when creating the diff of two files Join lines on a common field Leave a Reply Cancel reply Name (required) E-mail (required) URI Your Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>