diff
Linux Commands - Managing Files and Text

diff

diff compares two files and returns the lines where there are differences. Example: diff po pi Binary files po and pi differ This gives you a basic understanding that they are different. Options -a compares all files -b ignores whitespace -B ignores blank lines -c prints 3 lines of context fore each difference -i ignores case Here is an example of the difference between two files which list the amount of difference and then it shows what things are different. diff data person1.rtf 1,192d0 < acpi < adduser.conf < adjtime < aliases < aliases.db < alsa < alternatives < anacrontab < apm < apt < at.deny ----cut---