How to compare the contents of two files

diff command

Using the diff command we can compare the differences in two files:-

diff file1 file2

The command above will compare two files for differences.

Vimal Sunday 17 November 2013 - 06:47 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.