what is the difference between commmands cmp and diff?

Answer Posted / bandi sreekanth

CMP:is used to compare two files by byte by byte process

DIFF:is used to compare files by line by line and list the defference between two files to standard output.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is command prompt unix?

575


What is time_t?

582


What are filter commands in unix?

549


What is the command to view process running?

570


Give the command for finding the current date.

575






What do chown command do?

528


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:

1758


What are the dos commands?

642


How do you grep recursively?

553


How can you see the command line history?

580


How do I run a bash script?

576


What is the comma to display different lines that are found when compare two files?

591


How do you grep a case insensitive?

536


Using unix command how to display no of records in oracle?

602


What is the difference between grep and grep?

563