Difference between revisions of "Diff"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 +
{{lowercase}}
 
<code>diff</code> compare files line by line
 
<code>diff</code> compare files line by line
 
* https://man7.org/linux/man-pages/man1/diff.1.html
 
* https://man7.org/linux/man-pages/man1/diff.1.html
Line 20: Line 21:
 
* <code>[[rsnapshot-diff]]</code>
 
* <code>[[rsnapshot-diff]]</code>
 
* <code>[[git diff]]</code>
 
* <code>[[git diff]]</code>
 +
* <code>[[git diff-tree]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 13:24, 3 September 2021

diff compare files line by line


Examples

  • diff -y file1 file2
  • diff -y --suppress-common-lines file1 file2
  • diff -y --suppress-common-lines -W 200 file1 file2


  • diff /path/to/DIRECTORY1/ /path/to/DIRECTORY2/
  • diff -r /path/to/DIRECTORY1/ /path/to/DIRECTORY2/


Related commands

See also

Advertising: