Question: what is difference between diff and cmp in unix?
Answer: cmp is another program for comparing files. It's a lot simpler than diff (Section 11.1); it tells you whether the files are equivalent and the byte offset at which the first difference occurs. You don't get a detailed analysis of where the two files differ. ... The files differed.