We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff
diff 用于对比文件或文件夹
diff [选项] 文件/目录 文件/目录
比较两个文件
diff readme.md readme2.md
对比结果中,
a
-add
c
-change
d
-delete
并排格式输出
diff readme.md readme2.md -y -W 50
上下文输出
diff readme.md readme2.md -c
统一格式输出
diff readme.md readme2.md -u
比较两个目录
diff folder1 folder2
只会对比文件名相同的文件
比较两个文件不同,并生产补丁
diff readme.md readme2.md >patch.log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
day 18 - linux 命令 :
diff
diff
用于对比文件或文件夹语法
实例
比较两个文件
对比结果中,
a
:-add
c
:-change
d
:-delete
并排格式输出
上下文输出
统一格式输出
比较两个目录
只会对比文件名相同的文件
比较两个文件不同,并生产补丁
The text was updated successfully, but these errors were encountered: