功能说明:比较文件的差异. 语法:diff [OPTION]... FILES 实例: diff -ur temp1 temp2 diff -ur temp1 temp2 > temp.diff option详细: --normal output a normal diff (This is the default). -q, --brief report only when files differ. -s, --report-identical-files report when two f…
Linux diff比较两个目录的不同: diff dir1 dir2 -urNaq -a --text Treat all files as text. -u -U NUM --unified[=NUM] Output NUM (default 3) lines of unified[统一] context. -u,-U<列数>或--unified=<列数>:以合并的方式来显示文件内容的不同: -N --new-file Treat absent[缺少] file…