Nguyễn Hồng Nhung
New member
Can we diff two files in linux?
Answer
Comparing files (diff command)
Answer
Comparing files (diff command)
- To compare two files, type the following: diff chap1.bak chap1. This displays the differences between the chap1. …
- To compare two files while ignoring differences in the amount of white space, type the following: diff -w prog.c.bak prog.c.