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 customise the other shell?
What are the four fundamental components of every file system on linux?
What is the use of "$?" Sign in shell script?
Write a command sequence to find the count of each word?
How to include comments in your shell scripts?
What is an sh file?
Please give me example of " at command , contrab command " how to use
What is .sh file in mac?
What is "test"? How it is used in shell scripting?
What are the different types of shell scripting?
What language is bash?
How can the contents of a file inside jar be read without extracting in a shell script?