How do I run a diff between two files?

How do I run a diff between two files?
Answer
Comparing files (diff command)
  1. To compare two files, type the following: diff chap1.bak chap1. This displays the differences between the chap1. …
  2. To compare two files while ignoring differences in the amount of white space, type the following: diff -w prog.c.bak prog.c.
 

Tìm kiếm

Back
Top