-rw-r--r--?1?root?root?28?Jul?13?15:00?a.txt
-rw-r--r--?1?root?root?30?Jul?13?15:00?b.txt
[root@localhost?xly]#?cat?a.txt?
hello
123
this?is?a.txt
456
[root@localhost?xly]#?cat?b.txt?
hello!
123
this?is?b.txt
4567
[root@localhost?xly]#?diff?a.txt?b.txt?
1c1
<?hello
---
>?hello!
3,4c3,4
<?this?is?a.txt
<?456
---
>?this?is?b.txt
>?4567
1c1就是指2個文件第壹行不壹樣
<指的是a.txt
>指的是b.txt