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 do I open the shell prompt?
What is bourne shell scripting?
What is the best scripting language?
Explain about debugging?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is the conditional statement in shell scripting?
What is a shell in operating system?
Why should we use shell scripts?
What is path in shell script?
What does $0 mean in shell script?
When should shell programming/scripting not be used?
What is wc in shell script?
What is awk script?
What are types of shells?
How to check if a directory exists?