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
How to print the first array element?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How do I run a .sh file on mac?
What are the advantages of using shell scripts?
How do I run a script on mac?
What are the different variables present in linux shell?
What are script files?
What are "c" and "b" permission fields of a file?
I have 2 files and I want to print the records which are common to both.
What is an inode block?
What is the default shell of solaris?
How to get the first line from a file using just the terminal?
What does chmod do?
What is the difference between grep and egrep?
What does echo $0 do?