说说Linux下的diff命令

diff 的语法

diff [options] from-file(修改前的文件) to-file(修改后的文件)

diff 的 options

-u  # Use the unified output format.
-r  # When compare directories, recursively compare any subdirectories found.
-q  # Report only whether the files differ, not the details of the differences.

diff -u from-file to-file
git diff from-file to-file # 如果安装了git

Liunx

这篇文章: 有用 无用
创建 2017-07-06 22:16:50 / 更新 2018-01-03 11:12:00