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 |
State the advantages of shell scripting?
What is the difference between bash and shell?
How to know that your remote server is ruing smoothly or not in unix?
How do I run a bin bash script?
How will you find the 99th line of a file using only tail and head command?
write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null
How are shells born?
Why are shell scripts used?
Write the syntax for "if" conditionals in linux?
how to get part of string variable with echo command only?
Explain about gui scripting?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com