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
Where are cowrie shells found?
What are the different commands available to check the disk usage?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
Explain about "s" permission bit in a file?
What is bourne shell scripting?
What does sh mean?
write a shell script to check the failed jobs?
Explain about debugging?
How can the contents of a file inside jar be read without extracting in a shell script?
Is shell script a programming language?
What is the first line in every perl script called?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What are the default permissions of a file when it is created?
What is shell application?
What is bash coding?