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

What are different types of files in unix?

618


Is learning unix useful?

582


Explain the importance of directories in a unix system

721


What are the criteria for choosing a process for swapping into memory from the swap device?

666


How to check the date in unix?

627






Does windows use unix?

560


What is a filter in unix?

606


List the distributions of unix.

613


Is unix is a programming language?

598


Is windows built on unix?

613


How to calculate the number of words in a file?

584


What are the advantages of unix operating system?

574


What are the bits that support the demand paging?

644


What does tr H do in unix?

604


What a pipe?

646