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 do you know which shell I am using?
What is the syntax of "nested if statement" in shell scripting?
How do we create command aliases in a shell?
What is a shell script? Can you name some of its advantages?
What is a shell? · Types of shell · what is shell scripting?
Why are there shells on the beach?
How to set an array in linux?
how to search for vowels a,e,i,o,u appearing in the same sequence in a file
What language is used in terminal?
What is shell geeksforgeeks?
What are the advantages of shell scripting?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.