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 |
Is shell scripting a programming language?
What are the two files of crontab command?
How will you connect to a database server from linux?
what is the difference between sh & bash shell?
How do I read a .sh file?
Where cron file kept?
What is the difference between a variable and value?
What is computer cli?
What is the conditional statement in shell scripting?
How do I open the shell in cmd?
What does it mean to debug a script?
how will you find the total disk space used by a specific user?