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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / hari

cmp file1 file2

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix General Interview Questions

What does "bulk loading of a table" mean? Can you describe advantages or disadvantages of using these features?

2 Answers   Accenture,


What was unix originally written for?

0 Answers  


How to find out what processes are running in the background in unix?

0 Answers  


How do you kill a job in unix?

0 Answers  


What is a superuser?

0 Answers  






How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

0 Answers  


What is Process id in unix?

0 Answers  


Write a shell script that requests the user's age and then echoes it, along with some suitable comment.

0 Answers  


Explain a path in unix.

0 Answers  


Is unix cli or gui?

0 Answers  


How to remove files in unix?

0 Answers  


How to list directories in unix?

0 Answers  


Categories