what is the difference between cmp and diff commands
Answer Posted / 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 |
Post New Answer View All Answers
What is c in shell script?
Explain about "s" permission bit in a file?
Is shell a part of kernel?
What command needs to be used to take the backup?
What happens when you type ls?
What is console line?
What language is shell scripting?
What shell is bin sh?
What are scripts in psychology?
What is a beat in a script?
How to write a function?
What is an sh file?
What is a shell environment?
Explore about environment variables?
What are filters explain sort with all the options available?