How to see file differences side by side?

The diff tool can be used to compare two files and show the differences. By using the --side-by-side parameter, a comparison is made and the differences are displayed in two columns. A great visual way to compare data.

Examples

diff --side-by-side file1.txt file2.txt

Recently updated at July 26, 2019

Do you like this page? Share it with others or help us make it better

Yes!

Share with friends:
Share on Twitter