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 command will change your prompt to myprompt?

709


What is pipe command in unix?

677


Explain ‘library functions’ with respect to unix commands?

606


Explain command to view process running?

619


Which unix command to make a new directory?

594






What is sed awk grep?

609


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1766


Enlist some filename manipulation commands in unix.

556


What is the command to view process running?

578


Explain how to use grep command to list find the records of a file containing 10 different strings?

597


What is command statement?

543


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

678


Who invented grep?

655


What is the difference between cat and more command?

627