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

Answer Posted / prakash singh syan

diff file1 file2

Above command will display all the lines which r diff in
file1 & file2 whereas, cmp will only display 1st occurance
of difference.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some of the fundamental concepts of unix?

631


How to get the last word from a line in Unix file?

718


What do you mean by unix operating system?

674


How does the kernel differentiate device files and ordinary files?

755


What are the common directory management commands in unix?

808


What are three main elements of unix operating system?

646


What is pattern matching in unix?

689


How would you explain a kernel to a non-technical person?

702


How to list directories in unix?

759


What is the full meaning of unix?

738


Is unix free?

690


How can you get/set an environment variable from a program?

691


How many root directories exist in unix?

751


What is process termination in unix?

651


What are the bits that support the demand paging?

749