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.[不显示内容]

比较两个目录的不同:

更多相关文章

  1. Bash脚本删除目录中多个文件名末尾的'x'字符数量?
  2. Bash脚本不删除给定目录中的文件
  3. Linux:目录中的最新文件。
  4. 对于Linux创建链接时终目录和文件处理的认识
  5. Linux系统下查看目录大小
  6. 添用户报错:useradd:警告:此主目录已经存在
  7. Linux比较两个文件之间的不同
  8. Linux命令备忘实例(10)——目录管理
  9. ubuntu下的Samba配置:使每个用户可以用自己的用户名和密码登录自

随机推荐

  1. Android系统升级的完整过程
  2. Android中使用log4j
  3. add study URL
  4. Simulate android behaviors on win32
  5. Android录音下————AudioRecord源码分
  6. 在Android上编译OSG[3.0.2 ]
  7. 在Android中使用ExecutorService、Execut
  8. dumpsys cpuinfo
  9. Android Studio 之 View组件常用属性及其
  10. In FontFamilyFont, unable to find attr