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
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is difference between bash and shell?
how will you find the total disk space used by a specific user?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What does $0 mean in shell script?
How important is shell scripting?
What is k shell?
What is a program shell?
What is scripting autism?
What's the difference between scripting and coding?
Explain about echo command?
What is shell environment?
What is a file basename?
How do scripts work?