[日常] Linux使用diff来比较目录

[日常] Linux使用diff来比较目录,第1张

概述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[缺少] files as empty.-r  --recursive  Recursively compare any subdirectories found.-q  --brief  Output only whether files differ.[不显示内容]比较两个目录的不同: 

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[缺少] files as empty.

-r  --recursive  Recursively compare any subdirectorIEs found.

-q  --brIEf  Output only whether files differ.[不显示内容]

比较两个目录的不同:

总结

以上是内存溢出为你收集整理的[日常] Linux使用diff来比较目录全部内容,希望文章能够帮你解决[日常] Linux使用diff来比较目录所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1051143.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存