what is the difference between cmp and diff commands
Answers were Sorted based on User's Feedback
Answer / supreetha
cmp--> shows the first difference in the files
diff--> shows all the differences in the files
| Is This Answer Correct ? | 17 Yes | 4 No |
Answer / srikanth
cmp - It will compare files byte by byte
Ex: cmp text text1
text text1 differ: byte 2, line 1
diff - It will compare files line by line
If there are any differences in the file. Then it will print
to stdout along with all lines
| Is This Answer Correct ? | 13 Yes | 0 No |
How to make userdefined variables to available for all other shells?
What is the way to do multilevel if-else's in shell scripting?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What are the different types of variables used in shell script?
What is the conditional statement in shell scripting?
How to print all array elements and their respective indexes?
Is powershell a bash?
How important is shell scripting?
What is a boot block?
What is bash used for?
What are the Different types of shells?
Can shell script run on windows?