Command is short for difference.

diff compares the contents of two files line by line. After examining the files, it lists the lines that are not different.

Programmers often use this command when they need to make changes to a program rather than rewriting the entire source code.

The simplest form of this command is:

diff file1.txt file2.txt
Author

I’m Michael , a tech geek. Join me on the journey through interwebs to find latest news, tips and hints.

Write A Comment