what is the difference between commmands cmp and diff?

Answer Posted / suitable

The cmp command compares two files of any type and writes
the results to the standard output. By default, cmp is
silent if the files are the same; if they differ, the byte
and line number at which the first difference occurred is
reported.

diff command find differences between two files

Is This Answer Correct ?    56 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does awk stand for?

601


What is ‘ps’ command for?

610


Is grep faster than awk?

555


What are the commands in UNIX to list the files in a Directory?

614


Why is awk called awk?

573






What does grep v grep do?

546


What is the functionality of a top command?

620


Differentiate cat command from more command.

572


Explain command to display different lines that are found when compare two files?

676


Name the unix command to find how many days the server has been up.

596


What is pipe command in unix?

665


What is the use of the tee command?

593


Describe the zip/unzip command using gzip.

606


What is the unix command to confirm a remote host is alive or not?

577


What is time_t?

581