一、作用
二、选项
- -a 追加写入操作
- -c 显示全部内文,并标出不同之处
三、实例
```shell diff: 1.tx: 没有那个文件或目录 [root@localhost ~]# diff a.txt 1.txt 8,10c8,9 < sdsaas < cxzcd <
sadas cxzczx [root@localhost ~]#
shell [root@localhost ~]# diff -c a.txt 1.txt * a.txt 2022-06-18 16:48:02.791366953 +0800 —- 1.txt 2022-06-18 16:47:33.797006623 +0800
5,10 * 21312 ewq 12312 ! sdsaas ! cxzcd ! —- 5,9 —— 21312 ewq 12312 ! sadas ! cxzczx
```