Diff Linux Example - Linux

How to find diff between two files using linux command?

Snippet Code


  
Rate this page :
  [ 0 votes]

Linux diff command is used to compare two files. This command displays only the lines after comparison. Here the code compares file1.txt and file2.txt to find the difference. For running this code you need those two files in your directory.

diff file1.txt file2.txt

Tags


Ask Questions

Ask Question