说说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.
-d  # Change the algorithm to perhaps find a smaller set of changes.  This makes diff slower (sometimes much slower).
-q  # Report only whether the files differ, not the details of the differences.

Liunx

这篇文章: 有用 无用
创建 2017-07-06 22:16:50 / 更新 2017-07-06 22:16:50