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来比较目录

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
猜你喜欢
  • 2021-11-15
  • 2022-12-23
  • 2021-06-18
  • 2021-11-28
  • 2021-08-31
  • 2021-10-19
  • 2022-01-25
相关资源
相似解决方案