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
What are the zombie processes?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is another name for a bash shell script that you might see?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is .sh file in mac?
Explore about environment variables?
Is cmd a shell?
What is $1 in shell scripting?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
What is difference between shell and bash scripting?
What happens when you type ls?
Can shell script run on windows?
What are different types of shell?
Is it possible to substitute "ls" command in the place of "echo" command?
What is ms powershell?