0

how to compare two files in linux

How can I compare two files from command-line. Is there any tool which works on command-line...??

jacob
asked Feb 17, 2017
1 Answer
0

There is a command in linux to compare the files. The command name is diff.

For example: If you are having two files called test1 and test2.

# diff test1 test2

Or else check with vim editor as follows,

# vim -d test1 test2
View More
jagannatharumugam
answered Feb 19, 2017
Your Answer
||||
 
100:0

Related News in how to compare two files in linux

Related News in how to compare two files in linux